You are here

public function RendererInterface::mergeBubbleableMetadata in Drupal 9

Same name and namespace in other branches
  1. 8 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);