Edit on GitHub
Jump to docs navigation

Twig Components / Methods / logout_path

Note: You are currently reading the documentation for Bolt 5.0. Looking for the documentation for Bolt 5.2 instead?

logout_path(key = null) is a Twig function to generate a relative logout URL for the given firewall. If no key is provided, the URL is generated for the current firewall the user is logged into.

{{ logout_path(key = null) }}

key (optional)
type: string

Source: Twig



Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.