getActionsForObject($object); if (is_array($urls)) { $navigation = new Navigation(); foreach ($urls as $label => $url) { $navigation->addItem($label, array('url' => $url)); } } else { $navigation = $urls; } return $navigation; } /** * Create and return a new Navigation object * * @param array $actions Optional array of actions to add to the returned object * * @return Navigation */ protected function createNavigation(array $actions = null) { return empty($actions) ? new Navigation() : Navigation::fromArray($actions); } abstract public function getActionsForObject(MonitoredObject $object); }