ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
LinkItemRenderer.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 
32 {
36  protected function getSpecificComponentForItem(isItem $item): Component
37  {
41  $link = $this->ui->factory()->link()->bulky(
42  $this->buildIcon($item),
43  $item->getTitle(),
44  $this->getURI($item->getAction())
45  );
46 
47  if (null !== $item->getContentLanguage()) {
48  $link = $link->withContentLanguage($item->getContentLanguage());
49  }
50 
51  if (null !== $item->getLanguageForTargetedResource()) {
52  $link = $link->withLanguageOfReferencedContent($item->getLanguageForTargetedResource());
53  }
54 
55  return $link;
56  }
57 }
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...