function PlainTextEditor::getAttachments
Returns the attachments for this editor.
Return value
array An array of attachments, for use with #attached.
Overrides InPlaceEditorInterface::getAttachments
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',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.