176 files declare their use of CacheableMetadata

AccessPolicyProcessor.php in core/lib/Drupal/Core/Session/AccessPolicyProcessor.php
AccessPolicyProcessorTest.php in core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php
AnonymousUserResponseSubscriber.php in core/lib/Drupal/Core/EventSubscriber/AnonymousUserResponseSubscriber.php
BasicAuth.php in core/modules/basic_auth/src/Authentication/Provider/BasicAuth.php
BigPipeController.php in core/modules/big_pipe/src/Controller/BigPipeController.php
BlockComponentRenderArray.php in core/modules/layout_builder/src/EventSubscriber/BlockComponentRenderArray.php
BlockContentCacheTagsTest.php in core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php
BlockPageVariant.php in core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php
BlockPageVariantTest.php in core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php
BlockRepository.php in core/modules/block/src/BlockRepository.php
BlockResourceTestBase.php in core/modules/block/tests/src/Functional/Rest/BlockResourceTestBase.php
BlockViewBuilder.php in core/modules/block/src/BlockViewBuilder.php
BlockViewBuilderTest.php in core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php
BookBreadcrumbBuilder.php in core/modules/book/src/BookBreadcrumbBuilder.php
BookNavigationCacheContext.php in core/modules/book/src/Cache/BookNavigationCacheContext.php
BubbleableMetadata.php in core/lib/Drupal/Core/Render/BubbleableMetadata.php
BubbleableMetadataTest.php in core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
CacheabilityMetadataConfigOverride.php in core/modules/config/tests/config_override_integration_test/src/CacheabilityMetadataConfigOverride.php
CacheableExceptionTest.php in core/tests/Drupal/Tests/Core/Http/CacheableExceptionTest.php
CacheableMetadataTest.php in core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php
CacheableNormalization.php in core/modules/jsonapi/src/Normalizer/Value/CacheableNormalization.php
CacheContextsManager.php in core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php
CacheContextsManagerTest.php in core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
CachePluginBase.php in core/modules/views/src/Plugin/views/cache/CachePluginBase.php
ClientErrorResponseSubscriber.php in core/lib/Drupal/Core/EventSubscriber/ClientErrorResponseSubscriber.php
ComputedTestCacheableIntegerItemList.php in core/modules/system/tests/modules/entity_test/src/Plugin/Field/ComputedTestCacheableIntegerItemList.php
ComputedTestCacheableStringItemList.php in core/modules/system/tests/modules/entity_test/src/Plugin/Field/ComputedTestCacheableStringItemList.php
ConfigEntityStorage.php in core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
ConfigOverride.php in core/lib/Drupal/Core/Installer/ConfigOverride.php
ConfigOverrideIntegrationTestCacheContext.php in core/modules/config/tests/config_override_integration_test/src/Cache/ConfigOverrideIntegrationTestCacheContext.php
ConfigOverrider.php in core/modules/settings_tray/tests/modules/settings_tray_override_test/src/ConfigOverrider.php
ConfigOverrider.php in core/modules/config/tests/config_override_test/src/ConfigOverrider.php
ConfigOverrider.php in core/modules/config/tests/config_entity_static_cache_test/src/ConfigOverrider.php
ConfigOverriderLowPriority.php in core/modules/config/tests/config_override_test/src/ConfigOverriderLowPriority.php
ContentTranslationController.php in core/modules/content_translation/src/Controller/ContentTranslationController.php
content_translation.module in core/modules/content_translation/content_translation.module
Allows entities to be translated into different languages.
Context.php in core/lib/Drupal/Core/Plugin/Context/Context.php
ContextCacheKeys.php in core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php
CookiesCacheContext.php in core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php
CurrentLanguageContext.php in core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php
CurrentUserContext.php in core/modules/user/src/ContextProvider/CurrentUserContext.php
DateTest.php in core/tests/Drupal/Tests/Core/Datetime/DateTest.php
DbLogResourceTest.php in core/modules/dblog/tests/src/Functional/DbLogResourceTest.php
DisplayPluginBase.php in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
DynamicPageCacheSubscriber.php in core/modules/dynamic_page_cache/src/EventSubscriber/DynamicPageCacheSubscriber.php
EntityAccessDeniedHttpException.php in core/modules/jsonapi/src/Exception/EntityAccessDeniedHttpException.php
EntityCacheTagsTestBase.php in core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php
EntityCondition.php in core/modules/jsonapi/src/Query/EntityCondition.php
EntityReferenceFieldNormalizer.php in core/modules/jsonapi/src/Normalizer/EntityReferenceFieldNormalizer.php
EntityReferenceFormatterBase.php in core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceFormatterBase.php
EntityReferenceFormatterTest.php in core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceFormatterTest.php
EntityResource.php in core/modules/jsonapi/src/Controller/EntityResource.php
EntityResourceTestBase.php in core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
EntitySerializationTest.php in core/modules/serialization/tests/src/Kernel/EntitySerializationTest.php
EntityTestViewGrantsCacheContext.php in core/modules/system/tests/modules/entity_test/src/Cache/EntityTestViewGrantsCacheContext.php
EntityWithUriCacheTagsTestBase.php in core/modules/system/tests/src/Functional/Entity/EntityWithUriCacheTagsTestBase.php
EntryPoint.php in core/modules/jsonapi/src/Controller/EntryPoint.php
ExceptionJsonSubscriberTest.php in core/tests/Drupal/Tests/Core/EventSubscriber/ExceptionJsonSubscriberTest.php
ExtraFieldBlock.php in core/modules/layout_builder/src/Plugin/Block/ExtraFieldBlock.php
Fast404ExceptionHtmlSubscriber.php in core/lib/Drupal/Core/EventSubscriber/Fast404ExceptionHtmlSubscriber.php
Feed.php in core/modules/views/src/Plugin/views/display/Feed.php
FieldBlock.php in core/modules/layout_builder/src/Plugin/Block/FieldBlock.php
FieldItemNormalizer.php in core/modules/jsonapi/src/Normalizer/FieldItemNormalizer.php
FieldResolver.php in core/modules/jsonapi/src/Context/FieldResolver.php
FileUpload.php in core/modules/jsonapi/src/Controller/FileUpload.php
FileUploadResourceTestBase.php in core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
FileUploadTest.php in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
FilterTestCacheMerge.php in core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestCacheMerge.php
FormatterBase.php in core/lib/Drupal/Core/Field/FormatterBase.php
HeadersCacheContext.php in core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php
HelpController.php in core/modules/help/src/Controller/HelpController.php
HelpTopicSection.php in core/modules/help/src/Plugin/HelpSection/HelpTopicSection.php
HtmlResponse.php in core/lib/Drupal/Core/Render/HtmlResponse.php
HttpExceptionNormalizer.php in core/modules/jsonapi/src/Normalizer/HttpExceptionNormalizer.php
ImageUrlFormatter.php in core/modules/image/src/Plugin/Field/FieldFormatter/ImageUrlFormatter.php
IpCacheContext.php in core/lib/Drupal/Core/Cache/Context/IpCacheContext.php
IsFrontPathCacheContext.php in core/lib/Drupal/Core/Cache/Context/IsFrontPathCacheContext.php
IsSuperUserCacheContext.php in core/lib/Drupal/Core/Cache/Context/IsSuperUserCacheContext.php
JsonApiDocumentTopLevelNormalizer.php in core/modules/jsonapi/src/Normalizer/JsonApiDocumentTopLevelNormalizer.php
JsonApiDocumentTopLevelNormalizerTest.php in core/modules/jsonapi/tests/src/Kernel/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php
JsonApiRequestValidator.php in core/modules/jsonapi/src/EventSubscriber/JsonApiRequestValidator.php
JsonRenderer.php in core/modules/system/tests/modules/common_test/src/Render/MainContent/JsonRenderer.php
LanguageConfigFactoryOverride.php in core/modules/language/src/Config/LanguageConfigFactoryOverride.php
LanguagesCacheContext.php in core/lib/Drupal/Core/Cache/Context/LanguagesCacheContext.php
LayoutBuilderEntityViewDisplay.php in core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
LayoutBuilderIsActiveCacheContext.php in core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php
LayoutEntityHelperTrait.php in core/modules/layout_builder/src/LayoutEntityHelperTrait.php
LayoutRestTestBase.php in core/modules/layout_builder/tests/src/Functional/Rest/LayoutRestTestBase.php
layout_builder.module in core/modules/layout_builder/layout_builder.module
Provides hook implementations for Layout Builder.
Link.php in core/modules/jsonapi/src/JsonApiResource/Link.php
LinkCollectionNormalizer.php in core/modules/jsonapi/src/Normalizer/LinkCollectionNormalizer.php
LinkCollectionNormalizerTest.php in core/modules/jsonapi/tests/src/Kernel/Normalizer/LinkCollectionNormalizerTest.php
LinksetController.php in core/modules/system/src/Controller/LinksetController.php
LinksetControllerTest.php in core/modules/system/tests/src/Functional/Menu/LinksetControllerTest.php
LinkTest.php in core/modules/jsonapi/tests/src/Unit/JsonApiResource/LinkTest.php
LocalActionManager.php in core/lib/Drupal/Core/Menu/LocalActionManager.php
LocalTaskManager.php in core/lib/Drupal/Core/Menu/LocalTaskManager.php
LocalTaskManagerTest.php in core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php
LocalTasksBlock.php in core/lib/Drupal/Core/Menu/Plugin/Block/LocalTasksBlock.php
MainContentViewSubscriber.php in core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php
MediaEmbedFilterTest.php in core/modules/media/tests/src/Kernel/MediaEmbedFilterTest.php
MenuActiveTrailsCacheContext.php in core/lib/Drupal/Core/Cache/Context/MenuActiveTrailsCacheContext.php
MenuForm.php in core/modules/menu_ui/src/MenuForm.php
MenuLinkTree.php in core/lib/Drupal/Core/Menu/MenuLinkTree.php
MenuParentFormSelector.php in core/lib/Drupal/Core/Menu/MenuParentFormSelector.php
MenuParentFormSelectorInterface.php in core/lib/Drupal/Core/Menu/MenuParentFormSelectorInterface.php
menu_ui.module in core/modules/menu_ui/menu_ui.module
Allows administrators to customize the site's navigation menus.
MultipleStaticContext.php in core/modules/block/tests/modules/block_test/src/ContextProvider/MultipleStaticContext.php
NavigationRenderer.php in core/modules/navigation/src/NavigationRenderer.php
NodeAccessGrantsCacheContext.php in core/modules/node/src/Cache/NodeAccessGrantsCacheContext.php
NodeRouteContext.php in core/modules/node/src/ContextProvider/NodeRouteContext.php
NodeSearch.php in core/modules/node/src/Plugin/Search/NodeSearch.php
NodeTest.php in core/modules/jsonapi/tests/src/Functional/NodeTest.php
OEmbedFormatter.php in core/modules/media/src/Plugin/Field/FieldFormatter/OEmbedFormatter.php
OEmbedIframeController.php in core/modules/media/src/Controller/OEmbedIframeController.php
OffsetPage.php in core/modules/jsonapi/src/Query/OffsetPage.php
PageCacheAcceptHeaderController.php in core/modules/system/tests/modules/system_test/src/Controller/PageCacheAcceptHeaderController.php
PagersCacheContext.php in core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php
PathCacheContext.php in core/lib/Drupal/Core/Cache/Context/PathCacheContext.php
PathParentCacheContext.php in core/lib/Drupal/Core/Cache/Context/PathParentCacheContext.php
PermissionsHashGenerator.php in core/lib/Drupal/Core/Session/PermissionsHashGenerator.php
PermissionsHashGeneratorInterface.php in core/lib/Drupal/Core/Session/PermissionsHashGeneratorInterface.php
PirateDayCacheabilityMetadataConfigOverride.php in core/modules/config/tests/config_override_test/src/PirateDayCacheabilityMetadataConfigOverride.php
PirateDayCacheContext.php in core/modules/config/tests/config_override_test/src/Cache/PirateDayCacheContext.php
PlaceholderGenerator.php in core/lib/Drupal/Core/Render/PlaceholderGenerator.php
ProcessedText.php in core/modules/filter/src/Element/ProcessedText.php
ProtocolVersionCacheContext.php in core/lib/Drupal/Core/Cache/Context/ProtocolVersionCacheContext.php
QueryArgsCacheContext.php in core/lib/Drupal/Core/Cache/Context/QueryArgsCacheContext.php
Relationship.php in core/modules/jsonapi/src/JsonApiResource/Relationship.php
RenderCache.php in core/lib/Drupal/Core/Render/RenderCache.php
Renderer.php in core/lib/Drupal/Core/Render/Renderer.php
RendererBubblingTest.php in core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php
RendererPlaceholdersTest.php in core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
RendererTest.php in core/tests/Drupal/Tests/Core/Render/RendererTest.php
RendererTestBase.php in core/tests/Drupal/Tests/Core/Render/RendererTestBase.php
RequestFormatCacheContext.php in core/lib/Drupal/Core/Cache/Context/RequestFormatCacheContext.php
ResourceObject.php in core/modules/jsonapi/src/JsonApiResource/ResourceObject.php
ResourceObjectNormalizationCacher.php in core/modules/jsonapi/src/EventSubscriber/ResourceObjectNormalizationCacher.php
ResourceObjectNormalizer.php in core/modules/jsonapi/src/Normalizer/ResourceObjectNormalizer.php
ResourceObjectNormalizerCacherTest.php in core/modules/jsonapi/tests/src/Kernel/EventSubscriber/ResourceObjectNormalizerCacherTest.php
ResourceResponseSubscriber.php in core/modules/rest/src/EventSubscriber/ResourceResponseSubscriber.php
ResourceResponseTestTrait.php in core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php
ResourceTestBase.php in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
ResourceVersionRouteEnhancer.php in core/modules/jsonapi/src/Revisions/ResourceVersionRouteEnhancer.php
RestExport.php in core/modules/rest/src/Plugin/views/display/RestExport.php
RestJsonApiUnsupported.php in core/modules/jsonapi/tests/src/Functional/RestJsonApiUnsupported.php
RouteCacheContext.php in core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php
SectionStorageManagerTest.php in core/modules/layout_builder/tests/src/Unit/SectionStorageManagerTest.php
SessionExistsCacheContext.php in core/lib/Drupal/Core/Cache/Context/SessionExistsCacheContext.php
shortcut.module in core/modules/shortcut/shortcut.module
Allows users to manage customizable lists of shortcut links.
ShortcutCacheTagsTest.php in core/modules/shortcut/tests/src/Functional/ShortcutCacheTagsTest.php
SiteCacheContext.php in core/lib/Drupal/Core/Cache/Context/SiteCacheContext.php
Sort.php in core/modules/jsonapi/src/Query/Sort.php
SystemController.php in core/modules/system/src/Controller/SystemController.php
TemporaryQueryGuard.php in core/modules/jsonapi/src/Access/TemporaryQueryGuard.php
TermRouteContext.php in core/modules/taxonomy/src/ContextProvider/TermRouteContext.php
TestDisplayVariant.php in core/modules/system/tests/modules/display_variant_test/src/Plugin/DisplayVariant/TestDisplayVariant.php
ThemeCacheContext.php in core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php
TimestampAgoFormatter.php in core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/TimestampAgoFormatter.php
TimeZoneCacheContext.php in core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php
toolbar.module in core/modules/toolbar/toolbar.module
Administration toolbar for quick access to top level administration items.
ToolbarController.php in core/modules/toolbar/src/Controller/ToolbarController.php
TrackerController.php in core/modules/tracker/src/Controller/TrackerController.php
TrustedRedirectResponseTest.php in core/tests/Drupal/Tests/Core/Routing/TrustedRedirectResponseTest.php
UrlCacheContext.php in core/lib/Drupal/Core/Cache/Context/UrlCacheContext.php
UserCacheContext.php in core/lib/Drupal/Core/Cache/Context/UserCacheContext.php
UserListBuilder.php in core/modules/user/src/UserListBuilder.php
UserRegistrationRestTest.php in core/modules/user/tests/src/Functional/UserRegistrationRestTest.php
UserRolesCacheContext.php in core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php
VariationCacheTest.php in core/tests/Drupal/Tests/Core/Cache/VariationCacheTest.php
VersionHistoryController.php in core/lib/Drupal/Core/Entity/Controller/VersionHistoryController.php
VersionNegotiator.php in core/modules/jsonapi/src/Revisions/VersionNegotiator.php
ViewsTestCacheContext.php in core/modules/views/tests/modules/views_test_data/src/Cache/ViewsTestCacheContext.php
WorkspaceCacheContext.php in core/modules/workspaces/src/WorkspaceCacheContext.php
WorkspaceCacheContextTest.php in core/modules/workspaces/tests/src/Functional/WorkspaceCacheContextTest.php
WorkspaceTest.php in core/modules/jsonapi/tests/src/Functional/WorkspaceTest.php

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