src/Controller/AbstractTermsController.php
public function index()
    {
        $this->paginate = [
            'contain' => ['Vocabularies']
        ];
        $terms = $this->paginate($this->Terms);

        $this->set(compact('terms'));
        $this->set('_serialize', ['terms']);
    }
public function index()
    {
        $this->paginate = [
            'contain' => ['Vocabularies']
        ];
        $terms = $this->paginate($this->Terms);

        $this->set(compact('terms'));
        $this->set('_serialize', ['terms']);
    }
Index method

@return \Cake\Network\Response|null