class SecuredRedirectStub in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php \Drupal\Tests\Component\HttpFoundation\SecuredRedirectStub
- 10 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
Expanded class hierarchy of SecuredRedirectStub
File
- core/
tests/ Drupal/ Tests/ Component/ HttpFoundation/ SecuredRedirectResponseTest.php, line 53 - Contains \Drupal\Tests\Component\HttpFoundation\SecuredRedirectResponseTest.
Namespace
Drupal\Tests\Component\HttpFoundationView source
class SecuredRedirectStub extends SecuredRedirectResponse {
/**
* {@inheritdoc}
*/
protected function isSafe($url) {
// Empty implementation for testing.
return TRUE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SecuredRedirectResponse:: |
public static | function | Copies an existing redirect response into a safe one. | |
SecuredRedirectResponse:: |
protected | function | Copies over the values from the given response. | 1 |
SecuredRedirectResponse:: |
public | function | Sets the redirect target of this response. | |
SecuredRedirectStub:: |
protected | function |
Returns whether the URL is considered as safe to redirect to. Overrides SecuredRedirectResponse:: |