31 calls to CacheableMetadata::createFromRenderArray()

BlockComponentRenderArray::onBuildRender in core/modules/layout_builder/src/EventSubscriber/BlockComponentRenderArray.php
Builds render arrays for block plugins and sets it on the event.
BlockContentCacheTagsTest::testBlock in core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php
Tests that the block is cached with the correct contexts and tags.
BlockPageVariant::build in core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php
Builds and returns the renderable array for the display variant.
BlockViewBuilderTest::assertBlockRenderedWithExpectedCacheability in core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php
Asserts that a block is built/rendered/cached with expected cacheability.
BlockViewBuilderTest::verifyRenderCacheHandling in core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php
Verifies render cache handling of the block being tested.
BubbleableMetadata::createFromRenderArray in core/lib/Drupal/Core/Render/BubbleableMetadata.php
Creates a bubbleable metadata object with values taken from a render array.
CacheableMetadataTest::testCreateFromRenderArray in core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php
@covers ::createFromRenderArray @dataProvider providerTestCreateFromRenderArray
content_translation_page_attachments in core/modules/content_translation/content_translation.module
Implements hook_page_attachments().
EntityReferenceFormatterTest::testLabelFormatter in core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceFormatterTest.php
Tests the label formatter.
ExtraFieldBlock::replaceFieldPlaceholder in core/modules/layout_builder/src/Plugin/Block/ExtraFieldBlock.php
Replaces all placeholders for a given field.
Feed::buildResponse in core/modules/views/src/Plugin/views/display/Feed.php
Builds up a response with the rendered view as content.
HelpTopicSection::renderTopicForSearch in core/modules/help/src/Plugin/HelpSection/HelpTopicSection.php
Renders one topic for search indexing or search results.
HtmlResponse::setContent in core/lib/Drupal/Core/Render/HtmlResponse.php
Sets the response content.
JsonApiDocumentTopLevelNormalizerTest::testCacheableMetadataProvider in core/modules/jsonapi/tests/src/Kernel/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php
Provides test cases for asserting cacheable metadata behavior.
JsonRenderer::renderResponse in core/modules/system/tests/modules/common_test/src/Render/MainContent/JsonRenderer.php
Renders the main content render array into a response.
NodeSearch::prepareResults in core/modules/node/src/Plugin/Search/NodeSearch.php
Prepares search results for rendering.
OEmbedIframeController::render in core/modules/media/src/Controller/OEmbedIframeController.php
Renders an oEmbed resource.
PlaceholderGenerator::shouldAutomaticallyPlaceholder in core/lib/Drupal/Core/Render/PlaceholderGenerator.php
RenderCache::get in core/lib/Drupal/Core/Render/RenderCache.php
RenderCache::set in core/lib/Drupal/Core/Render/RenderCache.php
Renderer::addCacheableDependency in core/lib/Drupal/Core/Render/Renderer.php
RendererPlaceholdersTest::assertPlaceholderRenderCache in core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
@internal
RendererPlaceholdersTest::testCacheableParent in core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
@covers ::render @covers ::doRender @covers \Drupal\Core\Render\RenderCache::get @covers \Drupal\Core\Render\RenderCache::set
RendererTest::testRenderCache in core/tests/Drupal/Tests/Core/Render/RendererTest.php
@covers ::render @covers ::doRender @covers \Drupal\Core\Render\RenderCache::get @covers \Drupal\Core\Render\RenderCache::set
RendererTest::testRenderCacheMaxAge in core/tests/Drupal/Tests/Core/Render/RendererTest.php
@covers ::render @covers ::doRender @covers \Drupal\Core\Render\RenderCache::get @covers \Drupal\Core\Render\RenderCache::set
RendererTestBase::assertRenderCacheItem in core/tests/Drupal/Tests/Core/Render/RendererTestBase.php
Asserts a render cache item.
RestExport::buildResponse in core/modules/rest/src/Plugin/views/display/RestExport.php
Builds up a response with the rendered view as content.
shortcut_preprocess_page_title in core/modules/shortcut/shortcut.module
Implements hook_preprocess_HOOK() for page title templates.
ToolbarController::preRenderGetRenderedSubtrees in core/modules/toolbar/src/Controller/ToolbarController.php
#pre_render callback for toolbar_get_rendered_subtrees().
toolbar_get_rendered_subtrees in core/modules/toolbar/toolbar.module
Returns the rendered subtree of each top-level toolbar link.
WorkspaceCacheContextTest::testWorkspaceCacheContext in core/modules/workspaces/tests/src/Functional/WorkspaceCacheContextTest.php
Tests the 'workspace' cache context.

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