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

SecuredRedirectStub

Namespace

Drupal\Tests\Component\HttpFoundation

Code

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.