ConfigEntityType.php
Same filename in this branch
Same filename in other branches
- 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityType.php
- 9 core/lib/Drupal/Core/Entity/Annotation/ConfigEntityType.php
- 8.9.x core/lib/Drupal/Core/Config/Entity/ConfigEntityType.php
- 8.9.x core/lib/Drupal/Core/Entity/Annotation/ConfigEntityType.php
- 10 core/lib/Drupal/Core/Config/Entity/ConfigEntityType.php
- 10 core/lib/Drupal/Core/Entity/Annotation/ConfigEntityType.php
Namespace
Drupal\Core\Entity\AttributeFile
-
core/
lib/ Drupal/ Core/ Entity/ Attribute/ ConfigEntityType.php
View source
<?php
namespace Drupal\Core\Entity\Attribute;
use Drupal\Core\StringTranslation\TranslatableMarkup;
/**
* 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.
*
* @ingroup entity_api
*
* @see \Drupal\Core\Entity\EntityType
* @see \Drupal\Core\Config\Entity\ConfigEntityType
* @see \Drupal\Core\Config\Entity\ConfigEntityTypeInterface
*/
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 = []) {
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
ConfigEntityType | Defines a configuration entity type attribute object. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.