/** * Returns the current html/head/title for this page. * * If the title is an array the seperator concatenates the parts. * * @param string $separator * @return string */ public function getTitle($separator = null) { if ($title_set = parent::getTitle($separator)) { return $title_set; } $title = array(); foreach ($this->menu->getActivePath($this->getRequest()) as $menuItem) { $title[] = $menuItem->get('label'); } if ($id = $this->getInstanceId()) { $title[] = $id; } return implode($separator, $title); }