class EdgeEntityType in Apigee Edge 8
Same name in this branch
- 8 src/Annotation/EdgeEntityType.php \Drupal\apigee_edge\Annotation\EdgeEntityType
- 8 src/Entity/EdgeEntityType.php \Drupal\apigee_edge\Entity\EdgeEntityType
Defines an Apigee Edge entity type annotation object.
The annotation properties of entity types are found on \Drupal\apigee_edge\Entity\EdgeEntityType and are accessed using get/set methods defined in \Drupal\apigee_edge\Entity\EdgeEntityTypeInterface.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\Core\Entity\Annotation\EntityType uses StringTranslationTrait
- class \Drupal\apigee_edge\Annotation\EdgeEntityType
- class \Drupal\Core\Entity\Annotation\EntityType uses StringTranslationTrait
Expanded class hierarchy of EdgeEntityType
File
- src/
Annotation/ EdgeEntityType.php, line 36
Namespace
Drupal\apigee_edge\AnnotationView source
class EdgeEntityType extends EntityType {
/**
* {@inheritdoc}
*/
public $entity_type_class = EntityEdgeEntityType::class;
/**
* {@inheritdoc}
*/
public $group = 'apigee_edge';
/**
* {@inheritdoc}
*/
public function get() {
$this->definition['group_label'] = new TranslatableMarkup('Apigee Edge', [], [
'context' => 'Entity type group',
]);
return parent::get();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EdgeEntityType:: |
public | property |
The class used to represent the entity type. Overrides EntityType:: |
|
EdgeEntityType:: |
public | property |
The group machine name. Overrides EntityType:: |
|
EdgeEntityType:: |
public | function |
Gets the value of an annotation. Overrides EntityType:: |
|
EntityType:: |
public | property | The group label. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
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 |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |