ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
LinkListItemRenderer.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
21 
27 
33 {
35  MakeSlateAsync::hash insteadof SlateSessionStateCode;
36  MakeSlateAsync::unhash insteadof SlateSessionStateCode;
37  }
38  use isSupportedTrait;
39 
43  public function getComponentWithContent(isItem $item): Component
44  {
45  $slate = $this->ui_factory->mainControls()->slate()->combined($item->getTitle(), $this->getStandardSymbol($item));
49  foreach ($item->getLinks() as $link) {
50  if (!$link->isVisible()) {
51  continue;
52  }
53  $link = $this->ui_factory->link()->bulky($this->getStandardSymbol($link), $link->getTitle(), $this->getURI($link->getAction()));
54  $slate = $slate->withAdditionalEntry($link);
55  }
56 
57  return $slate;
58  }
59 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...