public function RendererInterface::mergeBubbleableMetadata

public RendererInterface::mergeBubbleableMetadata(array $a, array $b)

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

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);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!RendererInterface.php/function/RendererInterface::mergeBubbleableMetadata/8.1.x