/** * @return string */ public function getPageTitle() { if (empty($this->pageTitle)) { $steps = $this->steps->getBreadcrumb(); $lastCrumb = end($steps); $this->pageTitle = $lastCrumb['title']; } return $this->pageTitle; }
/** * @inheritdoc */ protected function addCustomTemplateVarsBeforeOutput() { $this->view->assign('BREADCRUMB', $this->breadcrumb->getBreadcrumb()); $this->view->assign('LAYOUT', $this->fetchLayoutViaInheritance()); $this->eventDispatcher->dispatch('core.controller.custom_template_variable', new Core\Controller\Event\CustomTemplateVariableEvent($this->view)); }