[ 'testAdminNavigation' => function () { $config = Qs_Config::get('Test\\Admin', Qs_Config::APP_TYPE); $options = [ 'itemName' => $config->get('itemName'), 'itemsName' => $config->get('itemsName'), 'page' => Qs_SiteMap::findFirst([], ['type' => 'Test\\Admin\\']), ]; return new Navigation($options); }, 'testSlideAdminNavigation' => function (array $options) { $config = Qs_Config::get('Test\\Slide\\Admin', Qs_Config::APP_TYPE); $page = Qs_SiteMap::findFirst([], ['type' => 'Test\\Slide\\Admin\\']); if (empty($options['testId'])) { trigger_error('The testId option is not defined'); } else { $page['url'] .= '/' . $options['testId']; } $options = [ 'itemName' => $config->get('itemName'), 'itemsName' => $config->get('itemsName'), 'page' => $page, ]; return new Navigation($options); }, ] ]; } }