public function EditorSelector::getEditorAttachments in Drupal 10
Same name and namespace in other branches
- 8 core/modules/quickedit/src/EditorSelector.php \Drupal\quickedit\EditorSelector::getEditorAttachments()
- 9 core/modules/quickedit/src/EditorSelector.php \Drupal\quickedit\EditorSelector::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);
}