public function AttachmentsTrait::addAttachments in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Render/AttachmentsTrait.php \Drupal\Core\Render\AttachmentsTrait::addAttachments()
2 calls to AttachmentsTrait::addAttachments()
- BubbleableMetadata::addCacheableDependency in core/
lib/ Drupal/ Core/ Render/ BubbleableMetadata.php - FilterProcessResult::createPlaceholder in core/
modules/ filter/ src/ FilterProcessResult.php - Creates a placeholder.
File
- core/
lib/ Drupal/ Core/ Render/ AttachmentsTrait.php, line 34 - Contains \Drupal\Core\Render\AttachmentsTrait.
Class
- AttachmentsTrait
- Provides an implementation of AttachmentsInterface.
Namespace
Drupal\Core\RenderCode
public function addAttachments(array $attachments) {
$this->attachments = BubbleableMetadata::mergeAttachments($this->attachments, $attachments);
return $this;
}