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

Breadcrumb

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

function AttachmentsInterface::setAttachments

Replaces this object's attached data with the provided array.

Parameters

array $attachments: The attachments to set.

Return value

$this

File

core/lib/Drupal/Core/Render/AttachmentsInterface.php, line 66

Class

AttachmentsInterface
The attached metadata collection for a renderable element.

Namespace

Drupal\Core\Render

Code

public function setAttachments(array $attachments);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal