class ConfigEntityType

Same name in this branch
  1. 11.x core/lib/Drupal/Core/Config/Entity/ConfigEntityType.php \Drupal\Core\Config\Entity\ConfigEntityType
  2. 11.x core/lib/Drupal/Core/Entity/Annotation/ConfigEntityType.php \Drupal\Core\Entity\Annotation\ConfigEntityType
Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityType.php \Drupal\Core\Config\Entity\ConfigEntityType
  2. 9 core/lib/Drupal/Core/Entity/Annotation/ConfigEntityType.php \Drupal\Core\Entity\Annotation\ConfigEntityType
  3. 8.9.x core/lib/Drupal/Core/Config/Entity/ConfigEntityType.php \Drupal\Core\Config\Entity\ConfigEntityType
  4. 8.9.x core/lib/Drupal/Core/Entity/Annotation/ConfigEntityType.php \Drupal\Core\Entity\Annotation\ConfigEntityType
  5. 10 core/lib/Drupal/Core/Config/Entity/ConfigEntityType.php \Drupal\Core\Config\Entity\ConfigEntityType
  6. 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

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

... See full list

File

core/lib/Drupal/Core/Entity/Attribute/ConfigEntityType.php, line 21

Namespace

Drupal\Core\Entity\Attribute
View source
class ConfigEntityType extends EntityType {
    public function __construct(string $id, ?TranslatableMarkup $label = NULL, ?TranslatableMarkup $label_collection = NULL, ?TranslatableMarkup $label_singular = NULL, ?TranslatableMarkup $label_plural = NULL, ?string $config_prefix = NULL, string $entity_type_class = 'Drupal\\Core\\Config\\Entity\\ConfigEntityType', string $group = 'configuration', TranslatableMarkup $group_label = new TranslatableMarkup('Configuration', [], [
        'context' => 'Entity type group',
    ]), bool $static_cache = FALSE, bool $persistent_cache = TRUE, array $entity_keys = [], array $handlers = [], array $links = [], ?string $admin_permission = NULL, ?string $collection_permission = NULL, string $permission_granularity = 'entity_type', ?string $bundle_of = NULL, ?TranslatableMarkup $bundle_label = NULL, bool $internal = FALSE, array $label_count = [], ?string $uri_callback = NULL, bool $common_reference_target = FALSE, array $list_cache_contexts = [], array $list_cache_tags = [], array $constraints = [], array $additional = [], array $lookup_keys = [], array $config_export = []) {
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
AttributeBase::$class protected property The class used for this attribute class.
AttributeBase::$provider protected property The provider of the attribute class.
AttributeBase::getClass public function Gets the class of the attribute class. Overrides AttributeInterface::getClass 1
AttributeBase::getId public function Gets the unique ID for this attribute class. Overrides AttributeInterface::getId
AttributeBase::getProvider public function Gets the name of the provider of the attribute class. Overrides AttributeInterface::getProvider
AttributeBase::setClass public function Sets the class of the attributed class. Overrides AttributeInterface::setClass 1
AttributeBase::setProvider public function Sets the name of the provider of the attribute class. Overrides AttributeInterface::setProvider
ConfigEntityType::__construct public function Constructs a plugin attribute object. Overrides EntityType::__construct
EntityType::get public function Gets the value of an attribute. Overrides AttributeBase::get

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.