/** * Returns an array with relative link and corresponding label as key-value * * @param CmsController $cmsController * * @return array The navigation entries for this module */ public static function getNavigationEntries(CmsController $cmsController) { $localePath = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'locale' . DIRECTORY_SEPARATOR; $translator = $cmsController->getTranslator($localePath); $translator->bindTextDomain('backend', 'UTF-8'); return array(array('target' => '/http-errors', 'label' => $translator->_d('backend', 'HTTP errors'), 'scopes' => BackendNavigationInterface::DISPLAY_IN_ADMIN_BAR | BackendNavigationInterface::DISPLAY_IN_MOD_NAV)); }