You are here

class EmbedType in Embed 8

Defines an embed type annotation object.

Hierarchy

Expanded class hierarchy of EmbedType

1 file declares its use of EmbedType
EmbedTypeManager.php in src/EmbedType/EmbedTypeManager.php
3 classes are annotated with EmbedType
Aircraft in tests/embed_test/src/Plugin/EmbedType/Aircraft.php
An embed type plugin for testing the plugin form. Using aircraft.
Animal in tests/embed_test/src/Plugin/EmbedType/Animal.php
Animal test embed type.
EmbedTestDefault in tests/embed_test/src/Plugin/EmbedType/EmbedTestDefault.php
Default test embed type.

File

src/Annotation/EmbedType.php, line 14

Namespace

Drupal\embed\Annotation
View source
class EmbedType extends Plugin {

  /**
   * The embed type ID.
   *
   * @var string
   */
  protected $id;

  /**
   * The human-readable name of the embed type.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  protected $label;

  /**
   * The name of the embed form class associated with this embed type.
   *
   * @var string
   */
  protected $embed_form_class;

}

Members

Namesort descending Modifiers Type Description Overrides
EmbedType::$embed_form_class protected property The name of the embed form class associated with this embed type.
EmbedType::$id protected property The embed type ID.
EmbedType::$label protected property The human-readable name of the embed type.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2