ILIAS  release_7 Revision v7.30-3-g800a261c036
SeparatorItemRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
21
24
30{
34 public function getComponentWithContent(isItem $item) : Component
35 {
36 $horizontal = $this->ui_factory->divider()->horizontal();
37 if ($item->getTitle()) {
38 $horizontal = $horizontal->withLabel($item->getTitle());
39 }
40 return $horizontal;
41 }
42}
An exception for terminatinating execution or to throw for unit testing.
A component is the most general form of an entity in the UI.
Definition: Component.php:14