public BubbleableMetadata::applyTo(array &$build)
Applies the values of this bubbleable metadata object to a render array.
Parameters
array &$build: A render array.
Overrides CacheableMetadata::applyTo
File
- core/lib/Drupal/Core/Render/BubbleableMetadata.php, line 52
Class
- BubbleableMetadata
- Value object used for bubbleable rendering metadata.
Namespace
Drupal\Core\Render
Code
1 2 3 4 | public function applyTo( array & $build ) { parent::applyTo( $build ); $build [ '#attached' ] = $this ->attachments; } |
Please login to continue.