Twig Components / Methods / impersonation_exit_path
impersonation_exit_path(exitTo = null)
is a Twig function to generate a URL that you can visit to
exit user impersonation. After exiting
impersonation, the user is redirected to the current URI. If you prefer to redirect to a different URI, define its value
in the exitTo
argument.
If no user is being impersonated, the function returns an empty string.
{{ impersonation_exit_path(exitTo = null) }}
exitTo (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.
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.