function TrustedRedirectResponse::isSafe
Same name in other branches
- 9 core/lib/Drupal/Core/Routing/TrustedRedirectResponse.php \Drupal\Core\Routing\TrustedRedirectResponse::isSafe()
- 8.9.x core/lib/Drupal/Core/Routing/TrustedRedirectResponse.php \Drupal\Core\Routing\TrustedRedirectResponse::isSafe()
- 11.x core/lib/Drupal/Core/Routing/TrustedRedirectResponse.php \Drupal\Core\Routing\TrustedRedirectResponse::isSafe()
Overrides SecuredRedirectResponse::isSafe
File
-
core/
lib/ Drupal/ Core/ Routing/ TrustedRedirectResponse.php, line 45
Class
- TrustedRedirectResponse
- Provides a redirect response which contains trusted URLs.
Namespace
Drupal\Core\RoutingCode
protected function isSafe($url) {
return !empty($this->trustedUrls[$url]) || $this->isLocal($url);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.