diff options
Diffstat (limited to 'library/Icingadb/Widget/ItemList/UsergroupList.php')
-rw-r--r-- | library/Icingadb/Widget/ItemList/UsergroupList.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/library/Icingadb/Widget/ItemList/UsergroupList.php b/library/Icingadb/Widget/ItemList/UsergroupList.php new file mode 100644 index 0000000..2e95368 --- /dev/null +++ b/library/Icingadb/Widget/ItemList/UsergroupList.php @@ -0,0 +1,29 @@ +<?php + +/* Icinga DB Web | (c) 2020 Icinga GmbH | GPLv2 */ + +namespace Icinga\Module\Icingadb\Widget\ItemList; + +use Icinga\Module\Icingadb\Common\NoSubjectLink; +use Icinga\Module\Icingadb\Common\BaseItemList; +use ipl\Web\Url; + +class UsergroupList extends BaseItemList +{ + use NoSubjectLink; + + protected $defaultAttributes = ['class' => 'usergroup-list item-table']; + + protected function init() + { + parent::init(); + + $this->getAttributes()->get('class')->removeValue('item-list'); + $this->setDetailUrl(Url::fromPath('icingadb/usergroup')); + } + + protected function getItemClass(): string + { + return UsergroupListItem::class; + } +} |