Provides a common base class for cacheable safe redirects.
Hierarchy
- class \Symfony\Component\HttpFoundation\RedirectResponse extends \Symfony\Component\HttpFoundation\Response
- class \Drupal\Component\HttpFoundation\SecuredRedirectResponse
- class \Drupal\Core\Routing\CacheableSecuredRedirectResponse implements CacheableResponseInterface uses CacheableResponseTrait
- class \Drupal\Component\HttpFoundation\SecuredRedirectResponse
File
- core/lib/Drupal/Core/Routing/CacheableSecuredRedirectResponse.php, line 13
Namespace
Drupal\Core\Routing
Members
Name | Modifiers | Type | Description |
---|---|---|---|
CacheableResponseTrait::$cacheabilityMetadata | protected | property | The cacheability metadata. |
CacheableResponseTrait::addCacheableDependency | public | function | Adds a dependency on an object: merges its cacheability metadata. Overrides CacheableResponseInterface::addCacheableDependency |
CacheableResponseTrait::getCacheableMetadata | public | function | Returns the cacheability metadata for this response. Overrides CacheableResponseInterface::getCacheableMetadata |
CacheableSecuredRedirectResponse::fromResponse | protected | function | Copies over the values from the given response. Overrides SecuredRedirectResponse::fromResponse |
RedirectResponse::$targetUrl | protected | property | |
RedirectResponse::create | public static | function | |
RedirectResponse::getTargetUrl | public | function | Returns the target URL. |
RedirectResponse::__construct | public | function | Creates a redirect response so that it conforms to the rules defined for a redirect status code. |
SecuredRedirectResponse::createFromRedirectResponse | public static | function | Copies an existing redirect response into a safe one. |
SecuredRedirectResponse::isSafe | abstract protected | function | Returns whether the URL is considered as safe to redirect to. |
SecuredRedirectResponse::setTargetUrl | public | function | Sets the redirect target of this response. Overrides RedirectResponse::setTargetUrl |
Please login to continue.