public function AttachmentsTrait::setAttachments in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Render/AttachmentsTrait.php \Drupal\Core\Render\AttachmentsTrait::setAttachments()
- 9 core/lib/Drupal/Core/Render/AttachmentsTrait.php \Drupal\Core\Render\AttachmentsTrait::setAttachments()
File
- core/
lib/ Drupal/ Core/ Render/ AttachmentsTrait.php, line 37
Class
- AttachmentsTrait
- Provides an implementation of AttachmentsInterface.
Namespace
Drupal\Core\RenderCode
public function setAttachments(array $attachments) {
$this->attachments = $attachments;
return $this;
}