This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
Other Twig filters¶
ibexa_user_get_current()
¶
ibexa_user_get_current()
returns the User object (Ibexa\Contracts\Core\Repository\Values\User\User
) of the current user.
1 |
|
You can get the underlying Content item, for example the user's name,
by accessing the content
property:
1 |
|
ibexa_icon_path()
¶
ibexa_icon_path()
generates a path to the selected icon from an icon set.
Argument | Type | Description |
---|---|---|
icon |
string |
Identifier of an icon in the icon set. |
set |
string |
Identifier of the configured icon set. If empty, the default icon set is used. |
1 2 3 |
|
Icons size variants¶
The default icon size in the Back Office is 32px
. To change the default size, in the template add the modifier to the class name.
1 2 3 |
|
The list of available icon sizes:
Size | Class postfix (modifiers) |
---|---|
8px |
--tiny |
12px |
--tiny-small |
16px |
--small |
20px |
--small-medium |
24px |
--medium |
38px |
--medium-large |
48px |
--large |
64px |
--extra-large |