/** * Ensure the treeState propery exists */ private function createTreeState() { $this->createHomeState(); $this->treeState = $this->stateFactory->newCollectionState($this->homeState->getCollection()->getLink('family-tree')->getHref(), 'GET', $this->client); }