ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
isSupportedTrait.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\UI\Component\Button\Bulky as BulkyButton;
26use ILIAS\UI\Component\Link\Bulky as BulkyLink;
28
32trait isSupportedTrait
33{
34 protected function isComponentSupportedForCombinedSlate(Component $component): bool
35 {
36 return ($component instanceof BulkyButton || $component instanceof Slate || $component instanceof BulkyLink || $component instanceof Horizontal);
37 }
38
39
40 protected function isSupportedForMetaBar(Component $component): bool
41 {
42 return ($component instanceof BulkyButton || $component instanceof Slate);
43 }
44}
This describes a bulky button.
Definition: Bulky.php:29
A component is the most general form of an entity in the UI.
Definition: Component.php:28