W3cubDocs

/Symfony 2.8

Symfony\Bundle\SecurityBundle\Twig\Extension\LogoutUrlExtension

class LogoutUrlExtension extends Twig_Extension

LogoutUrlHelper provides generator functions for the logout URL to Twig.

Methods

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

public __construct(LogoutUrlHelper $helper)

Parameters

LogoutUrlHelper $helper

public getFunctions()

{@inheritdoc}

public 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

public 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

public getName()

{@inheritdoc}

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Bundle/SecurityBundle/Twig/Extension/LogoutUrlExtension.html