Search for metadata

  1. Search 7.x for metadata
  2. Search 9.5.x for metadata
  3. Search 8.9.x for metadata
  4. Search 10.3.x for metadata
  5. Other projects
Title Object type File name Summary
UserCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/UserCacheContext.php Gets the cacheability metadata for the context.
UserRolesCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php Gets cacheability metadata for the context based on the parameter value.
View::addCacheMetadata function core/modules/views/src/Entity/View.php Fills in the cache metadata of this view.
views.view.test_cacheable_metadata_calculation.yml file core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/config/install/views.view.test_cacheable_metadata_calculation.yml core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/config/install/views.view.test_cacheable_metadata_calculation.yml
ViewsBlockTest::providerTestCacheableMetadata function core/modules/views/tests/src/Unit/Plugin/Block/ViewsBlockTest.php Data provider for ::testCacheableMetadata()
ViewsBlockTest::testCacheableMetadata function core/modules/views/tests/src/Unit/Plugin/Block/ViewsBlockTest.php Tests that cacheable metadata is retrieved from the view and merged with block cacheable metadata.
ViewsTestCacheContext::getCacheableMetadata function core/modules/views/tests/modules/views_test_data/src/Cache/ViewsTestCacheContext.php Gets the cacheability metadata for the context.
views_test_cacheable_metadata_calculation.info.yml file core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/views_test_cacheable_metadata_calculation.info.yml core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/views_test_cacheable_metadata_calculation.info.yml
WorkspaceCacheContext::getCacheableMetadata function core/modules/workspaces/src/WorkspaceCacheContext.php Gets the cacheability metadata for the context.

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