Search for on

  1. Search 7.x for on
  2. Search 9.5.x for on
  3. Search 8.9.x for on
  4. Search 11.x for on
  5. Other projects
Title Object type File name Summary
CacheableResourceResponse class core/modules/jsonapi/src/CacheableResourceResponse.php Extends ResourceResponse with cacheability.
CacheableResourceResponse.php file core/modules/jsonapi/src/CacheableResourceResponse.php
CacheableResponse class core/lib/Drupal/Core/Cache/CacheableResponse.php A response that contains and can expose cacheability metadata.
CacheableResponse.php file core/lib/Drupal/Core/Cache/CacheableResponse.php
CacheableResponseInterface interface core/lib/Drupal/Core/Cache/CacheableResponseInterface.php Defines an interface for responses that can expose cacheability metadata.
CacheableResponseInterface.php file core/lib/Drupal/Core/Cache/CacheableResponseInterface.php
CacheableResponseInterface::addCacheableDependency function core/lib/Drupal/Core/Cache/CacheableResponseInterface.php Adds a dependency on an object: merges its cacheability metadata.
CacheableResponseInterface::getCacheableMetadata function core/lib/Drupal/Core/Cache/CacheableResponseInterface.php Returns the cacheability metadata for this response.
CacheableResponseTrait trait core/lib/Drupal/Core/Cache/CacheableResponseTrait.php Provides an implementation of CacheableResponseInterface.
CacheableResponseTrait.php file core/lib/Drupal/Core/Cache/CacheableResponseTrait.php
CacheableResponseTrait::$cacheabilityMetadata property core/lib/Drupal/Core/Cache/CacheableResponseTrait.php The cacheability metadata.
CacheableResponseTrait::addCacheableDependency function core/lib/Drupal/Core/Cache/CacheableResponseTrait.php
CacheableResponseTrait::getCacheableMetadata function core/lib/Drupal/Core/Cache/CacheableResponseTrait.php
CacheableSecuredRedirectResponse class core/lib/Drupal/Core/Routing/CacheableSecuredRedirectResponse.php Provides a common base class for cacheable safe redirects.
CacheableSecuredRedirectResponse.php file core/lib/Drupal/Core/Routing/CacheableSecuredRedirectResponse.php
CacheableSecuredRedirectResponse::fromResponse function core/lib/Drupal/Core/Routing/CacheableSecuredRedirectResponse.php Copies over the values from the given response.
CacheableServiceUnavailableHttpException class core/lib/Drupal/Core/Http/Exception/CacheableServiceUnavailableHttpException.php A cacheable ServiceUnavailableHttpException.
CacheableServiceUnavailableHttpException.php file core/lib/Drupal/Core/Http/Exception/CacheableServiceUnavailableHttpException.php
CacheableServiceUnavailableHttpException::__construct function core/lib/Drupal/Core/Http/Exception/CacheableServiceUnavailableHttpException.php
CacheableTestResponse class core/modules/system/tests/modules/early_rendering_controller_test/src/CacheableTestResponse.php
CacheableTestResponse.php file core/modules/system/tests/modules/early_rendering_controller_test/src/CacheableTestResponse.php
CacheableTooManyRequestsHttpException class core/lib/Drupal/Core/Http/Exception/CacheableTooManyRequestsHttpException.php A cacheable TooManyRequestsHttpException.
CacheableTooManyRequestsHttpException.php file core/lib/Drupal/Core/Http/Exception/CacheableTooManyRequestsHttpException.php
CacheableTooManyRequestsHttpException::__construct function core/lib/Drupal/Core/Http/Exception/CacheableTooManyRequestsHttpException.php
CacheableUnauthorizedHttpException class core/lib/Drupal/Core/Http/Exception/CacheableUnauthorizedHttpException.php A cacheable UnauthorizedHttpException.
CacheableUnauthorizedHttpException.php file core/lib/Drupal/Core/Http/Exception/CacheableUnauthorizedHttpException.php
CacheableUnauthorizedHttpException::__construct function core/lib/Drupal/Core/Http/Exception/CacheableUnauthorizedHttpException.php
CacheableUnprocessableEntityHttpException class core/lib/Drupal/Core/Http/Exception/CacheableUnprocessableEntityHttpException.php A cacheable UnprocessableEntityHttpException.
CacheableUnprocessableEntityHttpException.php file core/lib/Drupal/Core/Http/Exception/CacheableUnprocessableEntityHttpException.php
CacheableUnprocessableEntityHttpException::__construct function core/lib/Drupal/Core/Http/Exception/CacheableUnprocessableEntityHttpException.php
CacheableUnsupportedMediaTypeHttpException class core/lib/Drupal/Core/Http/Exception/CacheableUnsupportedMediaTypeHttpException.php A cacheable UnsupportedMediaTypeHttpException.
CacheableUnsupportedMediaTypeHttpException.php file core/lib/Drupal/Core/Http/Exception/CacheableUnsupportedMediaTypeHttpException.php
CacheableUnsupportedMediaTypeHttpException::__construct function core/lib/Drupal/Core/Http/Exception/CacheableUnsupportedMediaTypeHttpException.php
CacheBackendDecorator::garbageCollection function core/modules/system/tests/modules/performance_test/src/Cache/CacheBackendDecorator.php Performs garbage collection on a cache bin.
CacheBackendDecorator::logCacheOperation function core/modules/system/tests/modules/performance_test/src/Cache/CacheBackendDecorator.php Logs a cache operation.
CacheBackendDecorator::__construct function core/modules/system/tests/modules/performance_test/src/Cache/CacheBackendDecorator.php
CacheBackendInterface::garbageCollection function core/lib/Drupal/Core/Cache/CacheBackendInterface.php Performs garbage collection on a cache bin.
CacheCollector::__construct function core/lib/Drupal/Core/Cache/CacheCollector.php Constructs a CacheCollector object.
CacheCollectorTest::testUpdateCacheInvalidatedConflict function core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php Tests updating the cache when there is a conflict after cache invalidation.
CacheContextInterface interface core/lib/Drupal/Core/Cache/Context/CacheContextInterface.php Provides an interface for defining a cache context service.
CacheContextInterface.php file core/lib/Drupal/Core/Cache/Context/CacheContextInterface.php
CacheContextInterface::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/CacheContextInterface.php Gets the cacheability metadata for the context.
CacheContextInterface::getContext function core/lib/Drupal/Core/Cache/Context/CacheContextInterface.php Returns the string representation of the cache context.
CacheContextInterface::getLabel function core/lib/Drupal/Core/Cache/Context/CacheContextInterface.php Returns the label of the cache context.
CacheContextOptimizationTest class core/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php Tests the cache context optimization.
CacheContextOptimizationTest.php file core/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php
CacheContextOptimizationTest::$modules property core/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php Modules to install.
CacheContextOptimizationTest::setUp function core/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php
CacheContextOptimizationTest::testUserPermissionCacheContextOptimization function core/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php Ensures that 'user.permissions' cache context is able to define cache tags.
CacheContextOptimizationTest::testUserRolesCacheContextOptimization function core/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php Ensures that 'user.roles' still works when it is optimized away.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.