Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AttachmentsTrait.php

function AttachmentsTrait::setAttachments

2 calls to AttachmentsTrait::setAttachments()
AjaxResponse::addCommand in core/lib/Drupal/Core/Ajax/AjaxResponse.php
Add an AJAX command to the response.
HtmlResponse::setContent in core/lib/Drupal/Core/Render/HtmlResponse.php
Sets the response content.

File

core/lib/Drupal/Core/Render/AttachmentsTrait.php, line 37

Class

AttachmentsTrait
Provides an implementation of AttachmentsInterface.

Namespace

Drupal\Core\Render

Code

public function setAttachments(array $attachments) {
    $this->attachments = $attachments;
    return $this;
}
RSS feed
Powered by Drupal