class LogoutUrlExtension extends AbstractExtension

deprecated since version 2.7, to be removed in 3.0. Use Symfony\Bridge\Twig\Extension\LogoutUrlExtension instead.

LogoutUrlHelper provides generator functions for the logout URL to Twig.

Methods

__construct(LogoutUrlHelper $helper)

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 31
__construct(LogoutUrlHelper $helper)

Parameters

LogoutUrlHelper $helper

at line 39
getFunctions()

{@inheritdoc}

at line 54
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 66
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 74
getName()

{@inheritdoc}