/** * @param boolean $callParent * @return string */ public function getKeywords($callParent = true) { if ($callParent) { return parent::getKeywords(); } foreach ($this->getPagesOnPath() as $page) { if ($page->getKeywords()) { return $page->getKeywords(); } } return ''; }