22 calls to CacheableMetadata::createFromRenderArray()

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[[api-linebreak]] @dataProvider providerTestCreateFromRenderArray
content_translation_page_attachments in core/modules/content_translation/content_translation.module
Implements hook_page_attachments().
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.
JsonRenderer::renderResponse in core/modules/system/tests/modules/common_test/src/Render/MainContent/JsonRenderer.php
Renders the main content render array into a response.
PlaceholderGenerator::shouldAutomaticallyPlaceholder in core/lib/Drupal/Core/Render/PlaceholderGenerator.php
Whether the given render array should be automatically placeholdered.
RenderCache::get in core/lib/Drupal/Core/Render/RenderCache.php
Gets the cached, pre-rendered element of a renderable element from cache.
RenderCache::set in core/lib/Drupal/Core/Render/RenderCache.php
Caches the rendered output of a renderable array.
Renderer::addCacheableDependency in core/lib/Drupal/Core/Render/Renderer.php
Adds a dependency on an object: merges its cacheability metadata.
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[[api-linebreak]] @covers ::doRender[[api-linebreak]] @covers \Drupal\Core\Render\RenderCache::get[[api-linebreak]] @covers \Drupal\Core\Render\RenderCache::set[[api-linebreak]]
RendererTest::testRenderCache in core/tests/Drupal/Tests/Core/Render/RendererTest.php
@covers ::render[[api-linebreak]] @covers ::doRender[[api-linebreak]] @covers \Drupal\Core\Render\RenderCache::get[[api-linebreak]] @covers \Drupal\Core\Render\RenderCache::set[[api-linebreak]]
RendererTest::testRenderCacheMaxAge in core/tests/Drupal/Tests/Core/Render/RendererTest.php
@covers ::render[[api-linebreak]] @covers ::doRender[[api-linebreak]] @covers \Drupal\Core\Render\RenderCache::get[[api-linebreak]] @covers \Drupal\Core\Render\RenderCache::set[[api-linebreak]]
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.
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.

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