/** * {@inheritdoc} */ public function getCmsPageTitleById($id) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getCmsPageTitleById'); if (!$pluginInfo) { return parent::getCmsPageTitleById($id); } else { return $this->___callPlugins('getCmsPageTitleById', func_get_args(), $pluginInfo); } }
/** * Prepare label using passed text as parameter. * If anchor text was not specified use title instead and * if title will be blank string, page identifier will be used. * * @return string */ public function getLabel() { if ($this->getData('anchor_text')) { $this->_anchorText = $this->getData('anchor_text'); } elseif ($this->getTitle()) { $this->_anchorText = $this->getTitle(); } elseif ($this->getData('href')) { $this->_anchorText = $this->_resourcePage->setStore($this->_storeManager->getStore())->getCmsPageTitleByIdentifier($this->getData('href')); } elseif ($this->getData('page_id')) { $this->_anchorText = $this->_resourcePage->getCmsPageTitleById($this->getData('page_id')); } else { $this->_anchorText = $this->getData('href'); } return $this->_anchorText; }