function RendererInterface::mergeBubbleableMetadata
Same name in other branches
- 9 core/lib/Drupal/Core/Render/RendererInterface.php \Drupal\Core\Render\RendererInterface::mergeBubbleableMetadata()
- 8.9.x core/lib/Drupal/Core/Render/RendererInterface.php \Drupal\Core\Render\RendererInterface::mergeBubbleableMetadata()
- 10 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 402
Class
- RendererInterface
- Defines an interface for turning a render array into a string.
Namespace
Drupal\Core\RenderCode
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.