function Editor::setEditor

Same name in other branches
  1. 9 core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::setEditor()
  2. 8.9.x core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::setEditor()
  3. 10 core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::setEditor()

Overrides EditorInterface::setEditor

File

core/modules/editor/src/Entity/Editor.php, line 176

Class

Editor
Defines the configured text editor entity.

Namespace

Drupal\editor\Entity

Code

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.