getSlices() as $key => $val) { $vars['_host_' . $key] = $val; } $url = 'monitoring/list/hosts'; $this->addActionLink( $this->makeUrl($url, $vars), $view->translate('Show hosts status'), $view->translate('This shows all matching hosts and their current state in the monitoring module'), 'host' ); } elseif ($cube instanceof IdoServiceStatusCube) { $vars = []; foreach ($cube->getSlices() as $key => $val) { $vars['_service_' . $key] = $val; } $url = 'monitoring/list/services'; $this->addActionLink( $this->makeUrl($url, $vars), $view->translate('Show services status'), $view->translate('This shows all matching services and their current state in the monitoring module'), 'host' ); } } }