5 $f = $DIC->ui()->factory();
6 $renderer = $DIC->ui()->renderer();
10 $ico =
$f->icon()->standard(
'someExample',
'Example');
11 $ico = $ico->withAbbreviation(
'E');
13 $buffer[] = $renderer->render($ico)
14 .
' Small Example with Short Abbreviation';
16 $buffer[] = $renderer->render($ico->withSize(
'medium'))
17 .
' Medium Example with Short Abbreviation';
19 $buffer[] = $renderer->render($ico->withSize(
'large'))
20 .
' Large Example with Short Abbreviation';
23 $ico =
$f->icon()->standard(
'someOtherExample',
'Example');
24 $ico = $ico->withAbbreviation(
'LA');
26 $buffer[] = $renderer->render($ico->withSize(
'small'))
27 .
' Small Example with Long Abbreviation';
29 $buffer[] = $renderer->render($ico->withSize(
'medium'))
30 .
' Medium Example with Long Abbreviation';
32 $buffer[] = $renderer->render($ico->withSize(
'large'))
33 .
' Large Example with Long Abbreviation';
36 return implode(
'<br><br>', $buffer);