Editor::setEditor

public Editor::setEditor($editor)

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 151

Class

Editor
Defines the configured text editor entity.

Namespace

Drupal\editor\Entity

Code

public function setEditor($editor) {
  $this->editor = $editor;
  return $this;
}
doc_Drupal
2016-10-29 09:03:43
Comments
Leave a Comment

Please login to continue.