public function PlainTextEditor::getAttachments in Drupal 8
Same name and namespace in other branches
- 9 core/modules/quickedit/src/Plugin/InPlaceEditor/PlainTextEditor.php \Drupal\quickedit\Plugin\InPlaceEditor\PlainTextEditor::getAttachments()
- 10 core/modules/quickedit/src/Plugin/InPlaceEditor/PlainTextEditor.php \Drupal\quickedit\Plugin\InPlaceEditor\PlainTextEditor::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/ PlainTextEditor.php, line 30
Class
- PlainTextEditor
- Defines the plain text in-place editor.
Namespace
Drupal\quickedit\Plugin\InPlaceEditorCode
public function getAttachments() {
return [
'library' => [
'quickedit/quickedit.inPlaceEditor.plainText',
],
];
}