class GetLastUsersExtension extends Twig_Extension

Class GetLastUsersExtension is injected as twig.extension.alligator.last_users service. GetLastUsersExtension handles the logic and provides necessary data for managed entity in twig.

Properties

protected UserManager $userManager

Methods

__construct(UserManager $userManager)

No description

getFunctions()

{@inheritdoc}

array
getLastUsers(int $number)

No description

User|null
getLoggedUser()

No description

User|null
getLoggedUserAddress(int $userId)

No description

string
getName()

Returns the name of the extension.

Details

at line 29
__construct(UserManager $userManager)

Parameters

UserManager $userManager

at line 37
getFunctions()

{@inheritdoc}

at line 52
array getLastUsers(int $number)

Parameters

int $number

Return Value

array

at line 60
User|null getLoggedUser()

Return Value

User|null

at line 77
User|null getLoggedUserAddress(int $userId)

Parameters

int $userId

Return Value

User|null

Exceptions

NonUniqueResultException

at line 92
string getName()

Returns the name of the extension.

Return Value

string The extension name