class ConfigEntityType
Same name in this branch
- 10 core/lib/Drupal/Core/Config/Entity/ConfigEntityType.php \Drupal\Core\Config\Entity\ConfigEntityType
Same name in other branches
- 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityType.php \Drupal\Core\Config\Entity\ConfigEntityType
- 9 core/lib/Drupal/Core/Entity/Annotation/ConfigEntityType.php \Drupal\Core\Entity\Annotation\ConfigEntityType
- 8.9.x core/lib/Drupal/Core/Config/Entity/ConfigEntityType.php \Drupal\Core\Config\Entity\ConfigEntityType
- 8.9.x core/lib/Drupal/Core/Entity/Annotation/ConfigEntityType.php \Drupal\Core\Entity\Annotation\ConfigEntityType
- 11.x core/lib/Drupal/Core/Config/Entity/ConfigEntityType.php \Drupal\Core\Config\Entity\ConfigEntityType
- 11.x core/lib/Drupal/Core/Entity/Annotation/ConfigEntityType.php \Drupal\Core\Entity\Annotation\ConfigEntityType
- 11.x core/lib/Drupal/Core/Entity/Attribute/ConfigEntityType.php \Drupal\Core\Entity\Attribute\ConfigEntityType
Defines a config entity type annotation object.
The annotation properties of entity types are found on \Drupal\Core\Config\Entity\ConfigEntityType and are accessed using get/set methods defined in \Drupal\Core\Entity\EntityTypeInterface.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements \Drupal\Component\Annotation\AnnotationInterface
- class \Drupal\Core\Entity\Annotation\EntityType extends \Drupal\Component\Annotation\Plugin uses \Drupal\Core\StringTranslation\StringTranslationTrait
- class \Drupal\Core\Entity\Annotation\ConfigEntityType extends \Drupal\Core\Entity\Annotation\EntityType
- class \Drupal\Core\Entity\Annotation\EntityType extends \Drupal\Component\Annotation\Plugin uses \Drupal\Core\StringTranslation\StringTranslationTrait
Expanded class hierarchy of ConfigEntityType
Related topics
36 classes are annotated with ConfigEntityType
- Action in core/
modules/ system/ src/ Entity/ Action.php - Defines the configured action entity.
- BaseFieldOverride in core/
lib/ Drupal/ Core/ Field/ Entity/ BaseFieldOverride.php - Defines the base field override entity.
- Block in core/
modules/ block/ src/ Entity/ Block.php - Defines a Block configuration entity class.
- BlockContentType in core/
modules/ block_content/ src/ Entity/ BlockContentType.php - Defines the block type entity.
- CommentType in core/
modules/ comment/ src/ Entity/ CommentType.php - Defines the comment type entity.
File
-
core/
lib/ Drupal/ Core/ Entity/ Annotation/ ConfigEntityType.php, line 18
Namespace
Drupal\Core\Entity\AnnotationView source
class ConfigEntityType extends EntityType {
/**
* {@inheritdoc}
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $entity_type_class = 'Drupal\\Core\\Config\\Entity\\ConfigEntityType';
/**
* {@inheritdoc}
*/
public $group = 'configuration';
/**
* {@inheritdoc}
*/
public function get() {
$this->definition['group_label'] = new TranslatableMarkup('Configuration', [], [
'context' => 'Entity type group',
]);
return parent::get();
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
ConfigEntityType::$entity_type_class | public | property | The class used to represent the entity type. | Overrides EntityType::$entity_type_class | |
ConfigEntityType::$group | public | property | The group machine name. | Overrides EntityType::$group | |
ConfigEntityType::get | public | function | Gets the value of an annotation. | Overrides EntityType::get | |
EntityType::$group_label | public | property | The group label. | ||
Plugin::$definition | protected | property | The plugin definition read from the class annotation. | 1 | |
Plugin::getClass | public | function | Gets the class of the annotated class. | Overrides AnnotationInterface::getClass | 1 |
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 | 1 |
Plugin::parse | protected | function | Parses an annotation into its definition. | ||
Plugin::setClass | public | function | Sets the class of the annotated class. | Overrides AnnotationInterface::setClass | 1 |
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. | 3 | |
StringTranslationTrait::$stringTranslation | protected | property | The string translation service. | 3 | |
StringTranslationTrait::formatPlural | protected | function | Formats a string containing a count of items. | ||
StringTranslationTrait::getNumberOfPlurals | protected | function | Returns the number of plurals supported by a given language. | ||
StringTranslationTrait::getStringTranslation | protected | function | Gets the string translation service. | ||
StringTranslationTrait::setStringTranslation | public | function | Sets the string translation service to use. | 2 | |
StringTranslationTrait::t | protected | function | Translates a string to the current language or to a given language. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.