W3cubDocs

/Symfony 2.7

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)

Constructor.

getFunctions()
string getLogoutPath(string $key)

Generate the relative logout URL for the firewall.

string getLogoutUrl(string $key)

Generate the absolute logout URL for the firewall.

getName()

Details

public __construct(LogoutUrlHelper $helper)

Constructor.

Parameters

LogoutUrlHelper $helper

public getFunctions()

See also

Twig_Extension::getFunctions()

public string getLogoutPath(string $key)

Generate the relative logout URL for the firewall.

Parameters

string $key The firewall key

Return Value

string The relative logout URL

public string getLogoutUrl(string $key)

Generate the absolute logout URL for the firewall.

Parameters

string $key The firewall key

Return Value

string The absolute logout URL

public getName()

See also

Twig_ExtensionInterface::getName()

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