Icon ViewHelper <core:icon>

ViewHelper to display an icon identified by its icon identifier.

   <core:icon title="Open actions menu" identifier="actions-menu" />
Copied!

Go to the source code of this ViewHelper: IconViewHelper.php (GitHub).

Arguments

The following arguments are available for the icon ViewHelper:

alternativeMarkupIdentifier

alternativeMarkupIdentifier
Type
string
Alternative icon identifier. Takes precedence over the identifier if supported by the IconProvider.

identifier

identifier
Type
string
Required
1
Identifier of the icon as registered in the Icon Registry.

overlay

overlay
Type
string
Identifier of an overlay icon as registered in the Icon Registry.

size

size
Type
string
Default
'small'
Desired size of the icon. All values of the IconSize enum are allowed, these are: "small", "default", "medium", "large" and "mega".

state

state
Type
string
Default
'default'
Sets the state of the icon. All values of the Icons.states enum are allowed, these are: "default" and "disabled".

title

title
Type
string
Title for the icon