function Editor::setEditor
Set the text editor plugin ID.
Parameters
string $editor: The text editor plugin ID to set.
Overrides EditorInterface::setEditor
File
- 
              core/
modules/ editor/ src/ Entity/ Editor.php, line 165  
Class
- Editor
 - Defines the configured text editor entity.
 
Namespace
Drupal\editor\EntityCode
public function setEditor($editor) {
  $this->editor = $editor;
  return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.