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

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

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

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