ILIAS  release_7 Revision v7.30-3-g800a261c036
isSupportedTrait.php
Go to the documentation of this file.
1<?php
2
19declare(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}
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