function EditorSelector::getEditorAttachments
Same name in other branches
- 8.9.x core/modules/quickedit/src/EditorSelector.php \Drupal\quickedit\EditorSelector::getEditorAttachments()
Overrides EditorSelectorInterface::getEditorAttachments
File
-
core/
modules/ quickedit/ src/ EditorSelector.php, line 88
Class
- EditorSelector
- Selects an in-place editor (an InPlaceEditor plugin) for a field.
Namespace
Drupal\quickeditCode
public function getEditorAttachments(array $editor_ids) {
$attachments = [];
$editor_ids = array_unique($editor_ids);
// Editor plugins' attachments.
foreach ($editor_ids as $editor_id) {
$editor = $this->editorManager
->createInstance($editor_id);
$attachments[] = $editor->getAttachments();
}
return NestedArray::mergeDeepArray($attachments);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.