function SecuredRedirectStub::isSafe
Returns whether the URL is considered as safe to redirect to.
Parameters
string $url: The URL checked for safety.
Return value
bool
Overrides SecuredRedirectResponse::isSafe
File
-
core/
tests/ Drupal/ Tests/ Component/ HttpFoundation/ SecuredRedirectResponseTest.php, line 58
Class
Namespace
Drupal\Tests\Component\HttpFoundationCode
protected function isSafe($url) {
// Empty implementation for testing.
return TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.