class CacheableRedirectResponse in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Cache/CacheableRedirectResponse.php \Drupal\Core\Cache\CacheableRedirectResponse
A RedirectResponse that contains and can expose cacheability metadata.
Supports Drupal's caching concepts: cache tags for invalidation and cache contexts for variations.
Hierarchy
- class \Drupal\Core\Cache\CacheableRedirectResponse extends \Symfony\Component\HttpFoundation\RedirectResponse implements CacheableResponseInterface uses CacheableResponseTrait
Expanded class hierarchy of CacheableRedirectResponse
See also
\Drupal\Core\Cache\CacheableMetadata
\Drupal\Core\Cache\CacheableResponseTrait
2 files declare their use of CacheableRedirectResponse
- RedirectLeadingSlashesSubscriber.php in core/
lib/ Drupal/ Core/ EventSubscriber/ RedirectLeadingSlashesSubscriber.php - TrustedRedirectResponseTest.php in core/
tests/ Drupal/ Tests/ Core/ Routing/ TrustedRedirectResponseTest.php
File
- core/
lib/ Drupal/ Core/ Cache/ CacheableRedirectResponse.php, line 17
Namespace
Drupal\Core\CacheView source
class CacheableRedirectResponse extends RedirectResponse implements CacheableResponseInterface {
use CacheableResponseTrait;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheableResponseTrait:: |
protected | property | The cacheability metadata. | |
CacheableResponseTrait:: |
public | function | ||
CacheableResponseTrait:: |
public | function |