ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
isSupportedTrait.php
Go to the documentation of this file.
1<?php
2
4
5use ILIAS\UI\Component\Button\Bulky as BulkyButton;
8use ILIAS\UI\Component\Link\Bulky as BulkyLink;
10
16trait isSupportedTrait
17{
18
24 protected function isComponentSupportedForCombinedSlate(Component $component) : bool
25 {
26 return ($component instanceof BulkyButton || $component instanceof Slate || $component instanceof BulkyLink || $component instanceof Horizontal);
27 }
28
29
35 protected function isSupportedForMetaBar(Component $component) : bool
36 {
37 return ($component instanceof BulkyButton || $component instanceof Slate);
38 }
39}
An exception for terminatinating execution or to throw for unit testing.
This describes a bulky button.
Definition: Bulky.php:10
A component is the most general form of an entity in the UI.
Definition: Component.php:14