ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Factory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26interface Factory
27{
47 public function standard(
48 string $name,
49 string $label,
50 string $size = 'small',
51 bool $is_disabled = false
52 ): Standard;
53
82 public function custom(
83 string $icon_path,
84 string $label,
85 string $size = 'small',
86 bool $is_disabled = false
87 ): Custom;
88}
This describes the behavior of an custom icon.
Definition: Custom.php:27
This is how a factory for icons looks like.
Definition: Factory.php:27
standard(string $name, string $label, string $size='small', bool $is_disabled=false)
custom(string $icon_path, string $label, string $size='small', bool $is_disabled=false)
This describes the specific behavior of an ILIAS standard icon.
Definition: Standard.php:27