ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
LinkItemRenderer.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 use ILIAS\Data\URI;
26 
31 {
32  protected function getSpecificComponentForItem(isItem $item): Component|array
33  {
34  if ($item->getAction() instanceof URI) {
35  return $this->ui
36  ->factory()
37  ->link()
38  ->standard(
39  $item->getTitle(),
40  (string) $item->getAction()
41  )
42  ->withOpenInNewViewport($item->mustOpenInNewViewport());
43  }
44 
45  return $this->ui
46  ->factory()
47  ->button()
48  ->standard(
49  $item->getTitle(),
50  $item->getAction()
51  );
52  }
53 
54 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...