You are here

protected function SecuredRedirectStub::isSafe in Drupal 9

Same name and namespace in other branches
  1. 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

SecuredRedirectStub

Namespace

Drupal\Tests\Component\HttpFoundation

Code

protected function isSafe($url) {

  // Empty implementation for testing.
  return TRUE;
}