You are here

public function FormEditor::getAttachments in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/quickedit/src/Plugin/InPlaceEditor/FormEditor.php \Drupal\quickedit\Plugin\InPlaceEditor\FormEditor::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/src/Plugin/InPlaceEditor/FormEditor.php, line 32
Contains \Drupal\quickedit\Plugin\InPlaceEditor\FormEditor.

Class

FormEditor
Defines the form in-place editor.

Namespace

Drupal\quickedit\Plugin\InPlaceEditor

Code

public function getAttachments() {
  return array(
    'library' => array(
      'quickedit/quickedit.inPlaceEditor.form',
    ),
  );
}