3 declare(strict_types=1);
19 $f = $DIC->ui()->factory();
24 $ico =
$f->symbol()->icon()->standard(
'someExample',
'Example');
25 $ico = $ico->withAbbreviation(
'E');
28 .
' Small Example with Short Abbreviation';
30 $buffer[] =
$renderer->render($ico->withSize(
'medium'))
31 .
' Medium Example with Short Abbreviation';
33 $buffer[] =
$renderer->render($ico->withSize(
'large'))
34 .
' Large Example with Short Abbreviation';
37 $ico =
$f->symbol()->icon()->standard(
'someOtherExample',
'Example');
38 $ico = $ico->withAbbreviation(
'LA');
40 $buffer[] =
$renderer->render($ico->withSize(
'small'))
41 .
' Small Example with Long Abbreviation';
43 $buffer[] =
$renderer->render($ico->withSize(
'medium'))
44 .
' Medium Example with Long Abbreviation';
46 $buffer[] =
$renderer->render($ico->withSize(
'large'))
47 .
' Large Example with Long Abbreviation';
50 return implode(
'<br><br>', $buffer);
default_icon()
description: > Example for rendering a standard icon.