You are here

public function WysiwygEditor::getAttachments in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/quickedit/tests/modules/src/Plugin/InPlaceEditor/WysiwygEditor.php \Drupal\quickedit_test\Plugin\InPlaceEditor\WysiwygEditor::getAttachments()
  2. 9 core/modules/quickedit/tests/modules/src/Plugin/InPlaceEditor/WysiwygEditor.php \Drupal\quickedit_test\Plugin\InPlaceEditor\WysiwygEditor::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/quickedit/tests/modules/src/Plugin/InPlaceEditor/WysiwygEditor.php, line 44

Class

WysiwygEditor
Defines the 'wysiwyg' in-place editor.

Namespace

Drupal\quickedit_test\Plugin\InPlaceEditor

Code

public function getAttachments() {
  return [
    'library' => [
      'quickedit_test/not-existing-wysiwyg',
    ],
  ];
}