ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
with_glyph.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
33function with_glyph()
34{
35 global $DIC;
36 $f = $DIC->ui()->factory();
37 $renderer = $DIC->ui()->renderer();
38
39 $glyph = $f->symbol()->glyph()->search();
40 $button = $f->button()->shy('search', "#")
41 ->withSymbol($glyph);
42 $button2 = $button->withLabel('');
43
44 return $renderer->render([
45 $button,
46 $button->withEngagedState(true),
47 $button->withUnavailableAction(true),
48 $f->divider()->vertical(),
49 $button2,
50 $button2->withEngagedState(true),
51 $button2->withUnavailableAction(true),
52
53 ]);
54}
$renderer
global $DIC
Definition: shib_login.php:26