Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Renderer.php

function Renderer::mergeBubbleableMetadata

Overrides RendererInterface::mergeBubbleableMetadata

1 call to Renderer::mergeBubbleableMetadata()
Renderer::doReplacePlaceholder in core/lib/Drupal/Core/Render/Renderer.php
Replaces a placeholder with its markup.

File

core/lib/Drupal/Core/Render/Renderer.php, line 724

Class

Renderer
Turns a render array into an HTML string.

Namespace

Drupal\Core\Render

Code

public function mergeBubbleableMetadata(array $a, array $b) {
    $meta_a = BubbleableMetadata::createFromRenderArray($a);
    $meta_b = BubbleableMetadata::createFromRenderArray($b);
    $meta_a->merge($meta_b)
        ->applyTo($a);
    return $a;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal