26 calls to CacheableMetadata::createFromObject()

AccessPolicyProcessor::processAccessPolicies in core/lib/Drupal/Core/Session/AccessPolicyProcessor.php
Processes the access policies for an account within a given scope.
BlockRepository::getVisibleBlocksPerRegion in core/modules/block/src/BlockRepository.php
BubbleableMetadata::createFromObject in core/lib/Drupal/Core/Render/BubbleableMetadata.php
Creates a bubbleable metadata object from a depended object.
CacheableMetadataTest::testCreateFromObject in core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php
@covers ::createFromObject @dataProvider providerTestCreateFromObject
CacheableResponseTrait::addCacheableDependency in core/lib/Drupal/Core/Cache/CacheableResponseTrait.php
ConfigEntityStorage::doLoadMultiple in core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
Performs storage-specific loading of entities.
ContentTranslationController::overview in core/modules/content_translation/src/Controller/ContentTranslationController.php
Builds the translations overview page.
Context::addCacheableDependency in core/lib/Drupal/Core/Plugin/Context/Context.php
Adds a dependency on an object: merges its cacheability metadata.
DisplayPluginBase::calculateCacheMetadata in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Calculates the display's cache metadata by inspecting each handler/plugin.
DynamicPageCacheSubscriber::onResponse in core/modules/dynamic_page_cache/src/EventSubscriber/DynamicPageCacheSubscriber.php
Stores a response in case of a Dynamic Page Cache miss, if cacheable.
DynamicPageCacheSubscriber::shouldCacheResponse in core/modules/dynamic_page_cache/src/EventSubscriber/DynamicPageCacheSubscriber.php
Whether the given response should be cached by Dynamic Page Cache.
EntityAccessDeniedHttpException::__construct in core/modules/jsonapi/src/Exception/EntityAccessDeniedHttpException.php
EntityAccessDeniedHttpException constructor.
EntityReferenceFormatterBase::getEntitiesToView in core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceFormatterBase.php
Returns the referenced entities for display.
ImageUrlFormatter::viewElements in core/modules/image/src/Plugin/Field/FieldFormatter/ImageUrlFormatter.php
Builds a renderable array for a field value.
JsonApiDocumentTopLevelNormalizer::normalizeOmissionsLinks in core/modules/jsonapi/src/Normalizer/JsonApiDocumentTopLevelNormalizer.php
Normalizes omitted data into a set of omission links.
layout_builder_system_breadcrumb_alter in core/modules/layout_builder/layout_builder.module
Implements hook_system_breadcrumb_alter().
LinksetController::process in core/modules/system/src/Controller/LinksetController.php
Serve linkset requests.
MenuForm::buildOverviewTreeForm in core/modules/menu_ui/src/MenuForm.php
Recursive helper function for buildOverviewForm().
MenuLinkTree::buildItems in core/lib/Drupal/Core/Menu/MenuLinkTree.php
Builds the #items property for a menu tree's renderable array.
MenuParentFormSelector::parentSelectOptionsTreeWalk in core/lib/Drupal/Core/Menu/MenuParentFormSelector.php
Iterates over all items in the tree to prepare the parents select options.
PermissionsHashGenerator::getCacheableMetadata in core/lib/Drupal/Core/Session/PermissionsHashGenerator.php
Gets the cacheability metadata for the generated hash.
Renderer::addCacheableDependency in core/lib/Drupal/Core/Render/Renderer.php
Adds a dependency on an object: merges its cacheability metadata.
ResourceObjectNormalizer::serializeField in core/modules/jsonapi/src/Normalizer/ResourceObjectNormalizer.php
Serializes a given field.
ResourceTestBase::getExpectedCollectionCacheability in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
Computes the cacheability for a given entity collection.
SystemController::overview in core/modules/system/src/Controller/SystemController.php
Provide the administration overview page.
VariationCache::set in core/lib/Drupal/Core/Cache/VariationCache.php
Stores data in the cache.

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