class SecuredRedirectStub
Same name in other branches
- 9 core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php \Drupal\Tests\Component\HttpFoundation\SecuredRedirectStub
- 8.9.x core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php \Drupal\Tests\Component\HttpFoundation\SecuredRedirectStub
- 11.x core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php \Drupal\Tests\Component\HttpFoundation\SecuredRedirectStub
Hierarchy
- class \Drupal\Component\HttpFoundation\SecuredRedirectResponse extends \Symfony\Component\HttpFoundation\RedirectResponse
- class \Drupal\Tests\Component\HttpFoundation\SecuredRedirectStub extends \Drupal\Component\HttpFoundation\SecuredRedirectResponse
Expanded class hierarchy of SecuredRedirectStub
File
-
core/
tests/ Drupal/ Tests/ Component/ HttpFoundation/ SecuredRedirectResponseTest.php, line 47
Namespace
Drupal\Tests\Component\HttpFoundationView source
class SecuredRedirectStub extends SecuredRedirectResponse {
/**
* {@inheritdoc}
*/
protected function isSafe($url) {
// Empty implementation for testing.
return TRUE;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
SecuredRedirectResponse::createFromRedirectResponse | public static | function | Copies an existing redirect response into a safe one. | ||
SecuredRedirectResponse::fromResponse | protected | function | Copies over the values from the given response. | 1 | |
SecuredRedirectResponse::setTargetUrl | public | function | |||
SecuredRedirectStub::isSafe | protected | function | Returns whether the URL is considered as safe to redirect to. | Overrides SecuredRedirectResponse::isSafe |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.