Search for %s

  1. Search 7.x for %s
  2. Search 8.9.x for %s
  3. Search 10.3.x for %s
  4. Search 11.x for %s
  5. Search main for %s
  6. Other projects
Title Object type File name Summary
CacheableMetadataCalculationTest::resetState function core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php Resets the state so we are ready for a new test.
CacheableMetadataCalculationTest::setUp function core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php
CacheableMetadataCalculationTest::testCacheableMetadataCalculation function core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php Tests that cacheability metadata is only calculated when needed.
CacheableMetadataCalculationTest::TEST_MODULE constant core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php The ID of the module used in the test.
CacheableMetadataCalculationTest::TEST_VIEW_ID constant core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php The ID of the view used in the test.
CacheableMetadataCalculationTest::__construct function core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/src/Plugin/views/access/CacheableMetadataCalculationTest.php Constructs a CacheableMetadataCalculationTest access plugin.
CacheableMetadataTest class core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php @coversDefaultClass \Drupal\Core\Cache\CacheableMetadata[[api-linebreak]]
@group Cache
CacheableMetadataTest.php file core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php
CacheableMetadataTest::providerSetCacheMaxAge function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php Data provider for testSetCacheMaxAge.
CacheableMetadataTest::providerTestCreateFromObject function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php Provides test data for createFromObject().
CacheableMetadataTest::providerTestCreateFromRenderArray function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php Provides test data for createFromRenderArray().
CacheableMetadataTest::providerTestMerge function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php Provides test data for testMerge().
CacheableMetadataTest::testAddCacheableDependency function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php @covers ::addCacheableDependency[[api-linebreak]]
@dataProvider providerTestMerge
CacheableMetadataTest::testAddCacheTags function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php This delegates to Cache::mergeTags(), so just a basic test.
CacheableMetadataTest::testCreateFromObject function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php @covers ::createFromObject[[api-linebreak]]
@dataProvider providerTestCreateFromObject
CacheableMetadataTest::testCreateFromRenderArray function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php @covers ::createFromRenderArray[[api-linebreak]]
@dataProvider providerTestCreateFromRenderArray
CacheableMetadataTest::testMerge function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php @covers ::merge[[api-linebreak]]
@dataProvider providerTestMerge
CacheableMetadataTest::testSetCacheMaxAge function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php Tests valid and invalid values as max age.
CacheableMethodNotAllowedHttpException::__construct function core/lib/Drupal/Core/Http/Exception/CacheableMethodNotAllowedHttpException.php
CacheableNormalization::hasNoNestedInstances function core/modules/jsonapi/src/Normalizer/Value/CacheableNormalization.php Ensures that no nested values are instances of this class.
CacheableNormalization::__construct function core/modules/jsonapi/src/Normalizer/Value/CacheableNormalization.php CacheableNormalization constructor.
CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY constant core/modules/serialization/src/Normalizer/CacheableNormalizerInterface.php Name of key for bubbling cacheability metadata via serialization context.
CacheableNotAcceptableHttpException::__construct function core/lib/Drupal/Core/Http/Exception/CacheableNotAcceptableHttpException.php
CacheableNotFoundHttpException::__construct function core/lib/Drupal/Core/Http/Exception/CacheableNotFoundHttpException.php
CacheableOmission class core/modules/jsonapi/src/Normalizer/Value/CacheableOmission.php Represents the cacheability associated with the omission of a value.
CacheableOmission.php file core/modules/jsonapi/src/Normalizer/Value/CacheableOmission.php
CacheableOmission::getNormalization function core/modules/jsonapi/src/Normalizer/Value/CacheableOmission.php A CacheableOmission should never have its normalization retrieved.
CacheableOmission::permanent function core/modules/jsonapi/src/Normalizer/Value/CacheableOmission.php Creates a CacheableNormalization instance without any special cacheability.
CacheableOmission::__construct function core/modules/jsonapi/src/Normalizer/Value/CacheableOmission.php CacheableOmission constructor.
CacheablePreconditionFailedHttpException::__construct function core/lib/Drupal/Core/Http/Exception/CacheablePreconditionFailedHttpException.php
CacheablePreconditionRequiredHttpException::__construct function core/lib/Drupal/Core/Http/Exception/CacheablePreconditionRequiredHttpException.php
CacheableRedirectResponse class core/lib/Drupal/Core/Cache/CacheableRedirectResponse.php A RedirectResponse that contains and can expose cacheability metadata.
CacheableRedirectResponse.php file core/lib/Drupal/Core/Cache/CacheableRedirectResponse.php
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.

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