21 calls to CacheableMetadata::createFromObject() in Drupal 8
- BlockRepository::getVisibleBlocksPerRegion in core/
modules/ block/ src/ BlockRepository.php - Returns an array of regions and their block entities.
- 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.
- 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().
- 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.
- RelationshipFieldAccess::access in core/
modules/ jsonapi/ src/ Access/ RelationshipFieldAccess.php - Checks access to the relationship field on the given route.
- 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.