declareParameter('status', Validate::SERVICESTATUS, array('startpage', 'configuration', 'status')); } public function prepareView(\Nethgui\View\ViewInterface $view) { parent::prepareView($view); $view['statusDatasource'] = array_map(function($fmt) use ($view) { return array($fmt, $view->translate($fmt . '_label')); }, array('enabled','disabled')); } protected function onParametersSaved($changes) { $this->getPlatform()->signalEvent('startpage-refresh &'); } }