class EmbedType in Embed 8
Defines an embed type annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\embed\Annotation\EmbedType
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\AnnotationView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EmbedType:: |
protected | property | The name of the embed form class associated with this embed type. | |
EmbedType:: |
protected | property | The embed type ID. | |
EmbedType:: |
protected | property | The human-readable name of the embed type. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |