avatar
class avatar extends Twig_Extension
Methods
string
getName()
Get the name of this extension
array
getFunctions()
Returns a list of global functions to add to the existing list.
string
get_avatar()
Get avatar for placing into templates.
Details
at line 23
string
getName()
Get the name of this extension
at line 33
array
getFunctions()
Returns a list of global functions to add to the existing list.
at line 54
string
get_avatar()
Get avatar for placing into templates.
How to use in a template:
- {{ avatar('mode', row, alt, ignore_config, lazy) }}
The mode and row (group_row or user_row) are required. The other fields (alt|ignore_config|lazy) are optional.