class LocalRedirectResponse in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Routing/LocalRedirectResponse.php \Drupal\Core\Routing\LocalRedirectResponse
Provides a redirect response which cannot redirect to an external URL.
Hierarchy
- class \Drupal\Component\HttpFoundation\SecuredRedirectResponse extends \Symfony\Component\HttpFoundation\RedirectResponse
- class \Drupal\Core\Routing\CacheableSecuredRedirectResponse implements CacheableResponseInterface uses CacheableResponseTrait
- class \Drupal\Core\Routing\LocalRedirectResponse uses LocalAwareRedirectResponseTrait
- class \Drupal\Core\Routing\CacheableSecuredRedirectResponse implements CacheableResponseInterface uses CacheableResponseTrait
Expanded class hierarchy of LocalRedirectResponse
2 files declare their use of LocalRedirectResponse
- BigPipeController.php in core/
modules/ big_pipe/ src/ Controller/ BigPipeController.php - RedirectResponseSubscriber.php in core/
lib/ Drupal/ Core/ EventSubscriber/ RedirectResponseSubscriber.php
File
- core/
lib/ Drupal/ Core/ Routing/ LocalRedirectResponse.php, line 8
Namespace
Drupal\Core\RoutingView source
class LocalRedirectResponse extends CacheableSecuredRedirectResponse {
use LocalAwareRedirectResponseTrait {
LocalAwareRedirectResponseTrait::isLocal as isSafe;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheableResponseTrait:: |
protected | property | The cacheability metadata. | |
CacheableResponseTrait:: |
public | function | ||
CacheableResponseTrait:: |
public | function | ||
CacheableSecuredRedirectResponse:: |
protected | function |
Copies over the values from the given response. Overrides SecuredRedirectResponse:: |
|
LocalAwareRedirectResponseTrait:: |
protected | property | The request context. | |
LocalAwareRedirectResponseTrait:: |
protected | function | Returns the request context. | |
LocalAwareRedirectResponseTrait:: |
protected | function | Determines whether a path is local. Aliased as: isSafe | |
LocalAwareRedirectResponseTrait:: |
public | function | Sets the request context. | |
SecuredRedirectResponse:: |
public static | function | Copies an existing redirect response into a safe one. | |
SecuredRedirectResponse:: |
public | function |