assertRouteAccess('usergroups'); $this->addTitleTab(t('User Group')); $name = $this->params->getRequired('name'); $query = Usergroup::on($this->getDb()); $query->filter(Filter::equal('usergroup.name', $name)); $this->applyRestrictions($query); $usergroup = $query->first(); if ($usergroup === null) { throw new NotFoundError(t('User group not found')); } $this->usergroup = $usergroup; $this->setTitle($usergroup->display_name); } public function indexAction() { $this->addControl((new UsergroupList([$this->usergroup]))->setNoSubjectLink()->setDetailActionsDisabled()); $this->addContent(new UsergroupDetail($this->usergroup)); $this->setAutorefreshInterval(10); } }