function SecuredRedirectStub::isSafe

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php \Drupal\Tests\Component\HttpFoundation\SecuredRedirectStub::isSafe()
  2. 8.9.x core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php \Drupal\Tests\Component\HttpFoundation\SecuredRedirectStub::isSafe()
  3. 10 core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php \Drupal\Tests\Component\HttpFoundation\SecuredRedirectStub::isSafe()

Overrides SecuredRedirectResponse::isSafe

File

core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php, line 52

Class

SecuredRedirectStub

Namespace

Drupal\Tests\Component\HttpFoundation

Code

protected function isSafe($url) : bool {
    // Empty implementation for testing.
    return TRUE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.