ILIAS  release_8 Revision v8.24
isSupportedTrait.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
21
22use ILIAS\UI\Component\Button\Bulky as BulkyButton;
25use ILIAS\UI\Component\Link\Bulky as BulkyLink;
27
32trait isSupportedTrait
33{
38 protected function isComponentSupportedForCombinedSlate(Component $component): bool
39 {
40 return ($component instanceof BulkyButton || $component instanceof Slate || $component instanceof BulkyLink || $component instanceof Horizontal);
41 }
42
47 protected function isSupportedForMetaBar(Component $component): bool
48 {
49 return ($component instanceof BulkyButton || $component instanceof Slate);
50 }
51}
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
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...