function SecuredRedirectResponse::isSafe
Same name in other branches
- 9 core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php \Drupal\Component\HttpFoundation\SecuredRedirectResponse::isSafe()
- 8.9.x core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php \Drupal\Component\HttpFoundation\SecuredRedirectResponse::isSafe()
- 10 core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php \Drupal\Component\HttpFoundation\SecuredRedirectResponse::isSafe()
Returns whether the URL is considered as safe to redirect to.
Parameters
string $url: The URL checked for safety.
Return value
bool
1 call to SecuredRedirectResponse::isSafe()
- SecuredRedirectResponse::setTargetUrl in core/
lib/ Drupal/ Component/ HttpFoundation/ SecuredRedirectResponse.php
2 methods override SecuredRedirectResponse::isSafe()
- SecuredRedirectStub::isSafe in core/
tests/ Drupal/ Tests/ Component/ HttpFoundation/ SecuredRedirectResponseTest.php - Returns whether the URL is considered as safe to redirect to.
- TrustedRedirectResponse::isSafe in core/
lib/ Drupal/ Core/ Routing/ TrustedRedirectResponse.php - Returns whether the URL is considered as safe to redirect to.
File
-
core/
lib/ Drupal/ Component/ HttpFoundation/ SecuredRedirectResponse.php, line 71
Class
- SecuredRedirectResponse
- Provides a common base class for safe redirects.
Namespace
Drupal\Component\HttpFoundationCode
protected abstract function isSafe($url);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.