hasBaseFilter()) { $filter->add($cube->getBaseFilter()); } foreach ($cube->getSlices() as $dimension => $slice) { $filter->add(Filter::equal($dimension, $slice)); } $url = Url::fromPath('icingadb/' . $type . 's'); $url->setFilter($filter); if ($type === 'host') { $this->addActionLink( $url, t('Show hosts status'), t('This shows all matching hosts and their current state in Icinga DB Web'), 'server' ); } else { $this->addActionLink( $url, t('Show services status'), t('This shows all matching hosts and their current state in Icinga DB Web'), 'cog' ); } } }