You are here

public function Image::getAttachments in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/image/src/Plugin/InPlaceEditor/Image.php \Drupal\image\Plugin\InPlaceEditor\Image::getAttachments()

Returns the attachments for this editor.

Return value

array An array of attachments, for use with #attached.

Overrides InPlaceEditorInterface::getAttachments

See also

\Drupal\Core\Render\AttachmentsResponseProcessorInterface::processAttachments()

File

core/modules/image/src/Plugin/InPlaceEditor/Image.php, line 31

Class

Image
Defines the image text in-place editor.

Namespace

Drupal\image\Plugin\InPlaceEditor

Code

public function getAttachments() {
  return [
    'library' => [
      'image/quickedit.inPlaceEditor.image',
    ],
  ];
}