function Editor::setEditor

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

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.