You are here

abstract protected function SecuredRedirectResponse::isSafe in Drupal 8

Same name and namespace in other branches
  1. 9 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
Sets the redirect target of this response.
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\HttpFoundation

Code

protected abstract function isSafe($url);