19declare(strict_types=1);
30 private readonly
string $gui
36 $txt = [$this->container->language(),
'txt'];
37 $toolbar = $this->container->toolbar();
38 $view_control = $this->container->ui()->factory()->viewControl()->mode([
39 $txt(
'tile_view') => $this->container->ctrl()->getLinkTargetByClass($this->gui,
'listBadges'),
40 $txt(
'table_view') => $this->container->ctrl()->getLinkTargetByClass($this->gui,
'manageBadges'),
41 ],
'View')->withActive($active);
43 $toolbar->addStickyItem($view_control);
45 $toolbar->addStickyItem($add);
Customizing of pimple-DIC for ILIAS.
A component is the most general form of an entity in the UI.