You are here

public function WysiwygEditor::getAttachments in Zircon Profile 8.0

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()

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 55
Contains \Drupal\quickedit_test\Plugin\InPlaceEditor\WysiwygEditor.

Class

WysiwygEditor
Defines the 'wysiwyg' in-place editor.

Namespace

Drupal\quickedit_test\Plugin\InPlaceEditor

Code

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