protected function SecuredRedirectStub::isSafe in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php \Drupal\Tests\Component\HttpFoundation\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 - Contains \Drupal\Tests\Component\HttpFoundation\SecuredRedirectResponseTest.
Class
Namespace
Drupal\Tests\Component\HttpFoundationCode
protected function isSafe($url) {
// Empty implementation for testing.
return TRUE;
}