function EditorInterface::setEditor
Same name in other branches
- 8.9.x core/modules/editor/src/EditorInterface.php \Drupal\editor\EditorInterface::setEditor()
- 10 core/modules/editor/src/EditorInterface.php \Drupal\editor\EditorInterface::setEditor()
- 11.x core/modules/editor/src/EditorInterface.php \Drupal\editor\EditorInterface::setEditor()
Set the text editor plugin ID.
Parameters
string $editor: The text editor plugin ID to set.
1 method overrides EditorInterface::setEditor()
- Editor::setEditor in core/
modules/ editor/ src/ Entity/ Editor.php - Set the text editor plugin ID.
File
-
core/
modules/ editor/ src/ EditorInterface.php, line 47
Class
- EditorInterface
- Provides an interface defining a text editor entity.
Namespace
Drupal\editorCode
public function setEditor($editor);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.