class LogoutUrlExtension extends Twig_Extension

LogoutUrlHelper provides generator functions for the logout URL to Twig.

Methods

__construct(LogoutUrlGenerator $generator)

No description

getFunctions()

{@inheritdoc}

string
getLogoutPath(string|null $key = null)

Generates the relative logout URL for the firewall.

string
getLogoutUrl(string|null $key = null)

Generates the absolute logout URL for the firewall.

getName()

{@inheritdoc}

Details

at line line 26
__construct(LogoutUrlGenerator $generator)

Parameters

LogoutUrlGenerator $generator

at line line 34
getFunctions()

{@inheritdoc}

at line line 49
string getLogoutPath(string|null $key = null)

Generates the relative logout URL for the firewall.

Parameters

string|null $key The firewall key or null to use the current firewall key

Return Value

string The relative logout URL

at line line 61
string getLogoutUrl(string|null $key = null)

Generates the absolute logout URL for the firewall.

Parameters

string|null $key The firewall key or null to use the current firewall key

Return Value

string The absolute logout URL

at line line 69
getName()

{@inheritdoc}