Applies the values of this bubbleable metadata object to a render array.
array &$build: A render array.
Overrides CacheableMetadata::applyTo
public function applyTo(array &$build) { parent::applyTo($build); $build['#attached'] = $this->attachments; }