You are here

public function EntityExtraFieldInterface::setBuildAttachment in Entity Extra Field 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/EntityExtraFieldInterface.php \Drupal\entity_extra_field\Entity\EntityExtraFieldInterface::setBuildAttachment()

Set a build attachment.

Parameters

$type: The type of attachment (library, drupalSettings, etc)

array $attachment: An array of attachment settings for the particular type.

Return value

$this

1 method overrides EntityExtraFieldInterface::setBuildAttachment()
EntityExtraField::setBuildAttachment in src/Entity/EntityExtraField.php
Set a build attachment.

File

src/Entity/EntityExtraFieldInterface.php, line 164

Class

EntityExtraFieldInterface
Define entity extra field interface.

Namespace

Drupal\entity_extra_field\Entity

Code

public function setBuildAttachment($type, array $attachment);