3 declare(strict_types=1);
10 $f = $DIC->ui()->factory();
11 $renderer = $DIC->ui()->renderer();
15 $ico =
$f->symbol()->icon()->standard(
'someExample',
'Example');
16 $ico = $ico->withAbbreviation(
'E');
18 $buffer[] = $renderer->render($ico)
19 .
' Small Example with Short Abbreviation';
21 $buffer[] = $renderer->render($ico->withSize(
'medium'))
22 .
' Medium Example with Short Abbreviation';
24 $buffer[] = $renderer->render($ico->withSize(
'large'))
25 .
' Large Example with Short Abbreviation';
28 $ico =
$f->symbol()->icon()->standard(
'someOtherExample',
'Example');
29 $ico = $ico->withAbbreviation(
'LA');
31 $buffer[] = $renderer->render($ico->withSize(
'small'))
32 .
' Small Example with Long Abbreviation';
34 $buffer[] = $renderer->render($ico->withSize(
'medium'))
35 .
' Medium Example with Long Abbreviation';
37 $buffer[] = $renderer->render($ico->withSize(
'large'))
38 .
' Large Example with Long Abbreviation';
41 return implode(
'<br><br>', $buffer);