/** * @return string */ public function getActiveTitle() { if ($this->activeItem) { return $this->activeItem->getData('title'); } else { return $this->context->getPageConfig()->getTitle()->getShort(); } }