UserAvatar
class UserAvatar extends AbstractExtension
Twig extension to return the url to be used for user's avatar using user_avatar([$size])
Properties
private ConfigServiceInterface | $configService | Stores ConfigServiceInterface | |
private TokenStorageInterface | $tokenStorage | Stores TokenStorageInterface |
Methods
__construct(ConfigServiceInterface $configService, TokenStorageInterface $tokenStorage)
No description
getFunctions()
No description
string|null
avatar(Environment $environment, int $size = 128, $user = null)
Returns the avatar's url if enabled
Details
at line 37
__construct(ConfigServiceInterface $configService, TokenStorageInterface $tokenStorage)
at line 46
getFunctions()
at line 64
string|null
avatar(Environment $environment, int $size = 128, $user = null)
Returns the avatar's url if enabled