function EntityType::__construct
Same name in this branch
- 11.x core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::__construct()
Same name and namespace in other branches
- 10 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::__construct()
- 9 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::__construct()
- 8.9.x core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::__construct()
Constructs a plugin attribute object.
Parameters
string $id: The plugin ID.
class-string|null $deriver: (optional) The deriver class.
Overrides Plugin::__construct
2 methods override EntityType::__construct()
- ConfigEntityType::__construct in core/
lib/ Drupal/ Core/ Entity/ Attribute/ ConfigEntityType.php - Constructs a plugin attribute object.
- ContentEntityType::__construct in core/
lib/ Drupal/ Core/ Entity/ Attribute/ ContentEntityType.php - Constructs a plugin attribute object.
File
-
core/
lib/ Drupal/ Core/ Entity/ Attribute/ EntityType.php, line 24
Class
- EntityType
- Defines an entity type for plugin discovery.
Namespace
Drupal\Core\Entity\AttributeCode
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 $entity_type_class = 'Drupal\\Core\\Entity\\EntityType', public readonly string $group = 'default', public readonly TranslatableMarkup $group_label = new TranslatableMarkup('Other', [], [
'context' => 'Entity type group',
]), public readonly bool $static_cache = TRUE, public readonly bool $render_cache = TRUE, 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_entity_type = NULL, public readonly ?string $bundle_of = NULL, public readonly ?TranslatableMarkup $bundle_label = NULL, public readonly ?string $base_table = NULL, public readonly ?string $data_table = NULL, public readonly ?string $revision_table = NULL, public readonly ?string $revision_data_table = NULL, public readonly bool $internal = FALSE, public readonly bool $translatable = FALSE, public readonly bool $show_revision_ui = FALSE, public readonly array $label_count = [], public readonly ?string $uri_callback = NULL, public readonly ?string $field_ui_base_route = 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 = []) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.