You are here

public function ArrayObject::bubbleRenderArray in Express 8

Merges a render array's cacheable metadata into the variables array.

Parameters

array $build: A render array.

Return value

$this

File

themes/contrib/bootstrap/src/Utility/ArrayObject.php, line 162
Contains \Drupal\bootstrap\Utility\ArrayObject.

Class

ArrayObject
Custom ArrayObject implementation.

Namespace

Drupal\bootstrap\Utility

Code

public function bubbleRenderArray(array $build) {
  BubbleableMetadata::createFromRenderArray($this->array)
    ->merge(BubbleableMetadata::createFromRenderArray($build))
    ->applyTo($this->array);
  return $this;
}