ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
isSupportedTrait.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Collector\Renderer
;
22
23
use
ILIAS\UI\Component\Button\Bulky
as BulkyButton;
24
use
ILIAS\UI\Component\Component
;
25
use
ILIAS\UI\Component\Divider\Horizontal
;
26
use
ILIAS\UI\Component\Link\Bulky
as BulkyLink;
27
use
ILIAS\UI\Component\MainControls\Slate\Slate
;
28
32
trait 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
}
ILIAS\UI\Component\Button\Bulky
This describes a bulky button.
Definition:
Bulky.php:29
ILIAS\UI\Component\Component
A component is the most general form of an entity in the UI.
Definition:
Component.php:28
ILIAS\UI\Component\Divider\Horizontal
Horizontal Divider.
Definition:
Horizontal.php:29
ILIAS\UI\Component\Link\Bulky
Bulky Link - a visually enriched link that looks like a button but behaves like a link.
Definition:
Bulky.php:29
ILIAS\UI\Component\MainControls\Slate\Slate
This describes a Slate.
Definition:
Slate.php:34
ILIAS\GlobalScreen\Collector\Renderer
Definition:
DecoratorApplierTrait.php:21
ILIAS\UI\Component
components
ILIAS
GlobalScreen
src
Collector
Renderer
isSupportedTrait.php
Generated on Sun Oct 19 2025 23:02:58 for ILIAS by
1.9.4 (using
Doxyfile
)