25 calls to CacheableMetadata::createFromRenderArray() in Drupal 10
- BlockComponentRenderArray::onBuildRender in core/
modules/ layout_builder/ src/ EventSubscriber/ BlockComponentRenderArray.php - Builds render arrays for block plugins and sets it on the event.
- BlockPageVariant::build in core/
modules/ block/ src/ Plugin/ DisplayVariant/ BlockPageVariant.php - BlockViewBuilder::preRender in core/
modules/ block/ src/ BlockViewBuilder.php - #pre_render callback for building a block.
- 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().
- DynamicPageCacheSubscriber::responseToRenderArray in core/
modules/ dynamic_page_cache/ src/ EventSubscriber/ DynamicPageCacheSubscriber.php - Embeds a Response object in a render array so that RenderCache can cache it.
- EntityReferenceFormatterBase::view in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldFormatter/ EntityReferenceFormatterBase.php - 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_topics/ src/ Plugin/ HelpSection/ HelpTopicSection.php - JsonRenderer::renderResponse in core/
modules/ system/ tests/ modules/ common_test/ src/ Render/ MainContent/ JsonRenderer.php - Renders the main content render array into a response.
- LayoutBuilderIntegration::entityViewAlter in core/
modules/ quickedit/ src/ LayoutBuilderIntegration.php - Alters the entity view build for Layout Builder compatibility.
- MenuForm::buildOverviewTreeForm in core/
modules/ menu_ui/ src/ MenuForm.php - Recursive helper function for buildOverviewForm().
- 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.
- ProcessedText::preRenderText in core/
modules/ filter/ src/ Element/ ProcessedText.php - Pre-render callback: Renders a processed text element into #markup.
- RenderCache::createCacheID in core/
lib/ Drupal/ Core/ Render/ RenderCache.php - Creates the cache ID for a renderable element.
- RenderCache::set in core/
lib/ Drupal/ Core/ Render/ RenderCache.php - Renderer::addCacheableDependency in core/
lib/ Drupal/ Core/ Render/ Renderer.php - Renderer::doRender in core/
lib/ Drupal/ Core/ Render/ Renderer.php - See the docs for ::render().
- 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.