function RendererInterface::mergeBubbleableMetadata

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Render/RendererInterface.php \Drupal\Core\Render\RendererInterface::mergeBubbleableMetadata()
  2. 10 core/lib/Drupal/Core/Render/RendererInterface.php \Drupal\Core\Render\RendererInterface::mergeBubbleableMetadata()
  3. 11.x core/lib/Drupal/Core/Render/RendererInterface.php \Drupal\Core\Render\RendererInterface::mergeBubbleableMetadata()

Merges the bubbleable rendering metadata o/t 2nd render array with the 1st.

Parameters

array $a: A render array.

array $b: A render array.

Return value

array The first render array, modified to also contain the bubbleable rendering metadata of the second render array.

See also

\Drupal\Core\Render\BubbleableMetadata

1 method overrides RendererInterface::mergeBubbleableMetadata()
Renderer::mergeBubbleableMetadata in core/lib/Drupal/Core/Render/Renderer.php
Merges the bubbleable rendering metadata o/t 2nd render array with the 1st.

File

core/lib/Drupal/Core/Render/RendererInterface.php, line 394

Class

RendererInterface
Defines an interface for turning a render array into a string.

Namespace

Drupal\Core\Render

Code

public function mergeBubbleableMetadata(array $a, array $b);

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