You are here

public function Editor::setEditor in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::setEditor()
  2. 9 core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\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 158

Class

Editor
Defines the configured text editor entity.

Namespace

Drupal\editor\Entity

Code

public function setEditor($editor) {
  $this->editor = $editor;
  return $this;
}