class Editor

Defines an Editor annotation object.

Hierarchy

Expanded class hierarchy of Editor

2 files declare their use of Editor
CKEditor.php in drupal/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php
Contains \Drupal\ckeditor\Plugin\Editor\CKEditor.
UnicornEditor.php in drupal/core/modules/editor/tests/modules/lib/Drupal/editor_test/Plugin/Editor/UnicornEditor.php
Contains \Drupal\editor_test\Plugin\Editor\UnicornEditor.
1 string reference to 'Editor'
EditorManager::__construct in drupal/core/modules/editor/lib/Drupal/editor/Plugin/EditorManager.php
Overrides \Drupal\Component\Plugin\PluginManagerBase::__construct().
2 classes are annotated with Editor
CKEditor in drupal/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php
Defines a CKEditor-based text editor for Drupal.
UnicornEditor in drupal/core/modules/editor/tests/modules/lib/Drupal/editor_test/Plugin/Editor/UnicornEditor.php
Defines a Unicorn-powered text editor for Drupal.

File

drupal/core/modules/editor/lib/Drupal/editor/Annotation/Editor.php, line 17
Contains \Drupal\editor\Annotation\Editor.

Namespace

Drupal\editor\Annotation
View source
class Editor extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The human-readable name of the editor plugin.
   *
   * @ingroup plugin_translatable
   *
   * @var \Drupal\Core\Annotation\Translation
   */
  public $label;

  /**
   * Whether the editor supports the inline editing provided by the Edit module.
   *
   * @var boolean
   */
  public $supports_inline_editing;

}

Members

Namesort descending Modifiers Type Description Overrides
Editor::$id public property The plugin ID.
Editor::$label public property The human-readable name of the editor plugin.
Editor::$supports_inline_editing public property Whether the editor supports the inline editing provided by the Edit module.
Plugin::$definition protected property The plugin definiton read from the class annotation.
Plugin::get public function Implements Drupal\Core\Annotation\AnnotationInterface::get(). Overrides AnnotationInterface::get
Plugin::parse protected function Parses an annotation into its definition.
Plugin::__construct public function Constructs a Plugin object.