src/Controller/AbstractVocabulariesController.php
public function view($id = null)
    {
        $vocabulary = $this->Vocabularies->get($id, [
            'contain' => ['Terms']
        ]);

        $this->set('vocabulary', $vocabulary);
        $this->set('_serialize', ['vocabulary']);
    }
public function view($id = null)
    {
        $vocabulary = $this->Vocabularies->get($id, [
            'contain' => ['Terms']
        ]);

        $this->set('vocabulary', $vocabulary);
        $this->set('_serialize', ['vocabulary']);
    }
View method

@param string|null $id Vocabulary id.
@return \Cake\Network\Response|null
@throws \Cake\Datasource\Exception\RecordNotFoundException When record not found.