class ConfigEntityType
Same name in this branch
- 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
Same name and namespace 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
- 10 core/lib/Drupal/Core/Config/Entity/ConfigEntityType.php \Drupal\Core\Config\Entity\ConfigEntityType
- 10 core/lib/Drupal/Core/Entity/Annotation/ConfigEntityType.php \Drupal\Core\Entity\Annotation\ConfigEntityType
Defines a configuration entity type attribute object.
Configuration entity type plugins use an object-based attribute method. The attribute properties of configuration 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\Core\Entity\Attribute\EntityType implements \Drupal\Component\Plugin\Attribute\Plugin
- class \Drupal\Core\Entity\Attribute\ConfigEntityType implements \Drupal\Core\Entity\Attribute\EntityType
Expanded class hierarchy of ConfigEntityType
See also
\Drupal\Core\Entity\EntityType
\Drupal\Core\Config\Entity\ConfigEntityType
\Drupal\Core\Config\Entity\ConfigEntityTypeInterface
Related topics
35 files declare their use of ConfigEntityType
- Action.php in core/
modules/ system/ src/ Entity/ Action.php - BaseFieldOverride.php in core/
lib/ Drupal/ Core/ Field/ Entity/ BaseFieldOverride.php - Block.php in core/
modules/ block/ src/ Entity/ Block.php - BlockContentType.php in core/
modules/ block_content/ src/ Entity/ BlockContentType.php - CommentType.php in core/
modules/ comment/ src/ Entity/ CommentType.php
File
-
core/
lib/ Drupal/ Core/ Entity/ Attribute/ ConfigEntityType.php, line 21
Namespace
Drupal\Core\Entity\AttributeView source
class ConfigEntityType extends EntityType {
public function __construct(public readonly string $id, public readonly ?TranslatableMarkup $label = NULL, public readonly ?TranslatableMarkup $label_collection = NULL, public readonly ?TranslatableMarkup $label_singular = NULL, public readonly ?TranslatableMarkup $label_plural = NULL, public readonly ?string $config_prefix = NULL, public readonly string $entity_type_class = 'Drupal\\Core\\Config\\Entity\\ConfigEntityType', public readonly string $group = 'configuration', public readonly TranslatableMarkup $group_label = new TranslatableMarkup('Configuration', [], [
'context' => 'Entity type group',
]), public readonly bool $static_cache = FALSE, public readonly bool $persistent_cache = TRUE, protected readonly array $entity_keys = [], protected readonly array $handlers = [], protected readonly array $links = [], public readonly ?string $admin_permission = NULL, public readonly ?string $collection_permission = NULL, public readonly string $permission_granularity = 'entity_type', public readonly ?string $bundle_of = NULL, public readonly ?TranslatableMarkup $bundle_label = NULL, public readonly bool $internal = FALSE, public readonly array $label_count = [], public readonly ?string $uri_callback = NULL, public readonly bool $common_reference_target = FALSE, public readonly array $list_cache_contexts = [], public readonly array $list_cache_tags = [], public readonly array $constraints = [], public readonly array $additional = [], public readonly array $lookup_keys = [], public readonly array $config_export = []) {
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
ConfigEntityType::__construct | public | function | Overrides EntityType::__construct | |
EntityType::get | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.