function EntityListBuilder::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityListBuilder.php \Drupal\Core\Entity\EntityListBuilder::__construct()
- 8.9.x core/lib/Drupal/Core/Entity/EntityListBuilder.php \Drupal\Core\Entity\EntityListBuilder::__construct()
- 11.x core/lib/Drupal/Core/Entity/EntityListBuilder.php \Drupal\Core\Entity\EntityListBuilder::__construct()
Constructs a new EntityListBuilder object.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.
18 calls to EntityListBuilder::__construct()
- ActionListBuilder::__construct in core/
modules/ action/ src/ ActionListBuilder.php - Constructs a new ActionListBuilder object.
- BlockListBuilder::__construct in core/
modules/ block/ src/ BlockListBuilder.php - Constructs a new BlockListBuilder object.
- CommentTypeListBuilder::__construct in core/
modules/ comment/ src/ CommentTypeListBuilder.php - Constructs a new CommentTypeListBuilder object.
- ConfigTranslationBlockListBuilder::__construct in core/
modules/ config_translation/ src/ Controller/ ConfigTranslationBlockListBuilder.php - ConfigTranslationFieldListBuilder::__construct in core/
modules/ config_translation/ src/ Controller/ ConfigTranslationFieldListBuilder.php - Constructs a new ConfigTranslationFieldListBuilder object.
18 methods override EntityListBuilder::__construct()
- ActionListBuilder::__construct in core/
modules/ action/ src/ ActionListBuilder.php - Constructs a new ActionListBuilder object.
- BlockListBuilder::__construct in core/
modules/ block/ src/ BlockListBuilder.php - Constructs a new BlockListBuilder object.
- CommentTypeListBuilder::__construct in core/
modules/ comment/ src/ CommentTypeListBuilder.php - Constructs a new CommentTypeListBuilder object.
- ConfigTranslationBlockListBuilder::__construct in core/
modules/ config_translation/ src/ Controller/ ConfigTranslationBlockListBuilder.php - ConfigTranslationFieldListBuilder::__construct in core/
modules/ config_translation/ src/ Controller/ ConfigTranslationFieldListBuilder.php - Constructs a new ConfigTranslationFieldListBuilder object.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityListBuilder.php, line 71
Class
- EntityListBuilder
- Defines a generic implementation to build a listing of entities.
Namespace
Drupal\Core\EntityCode
public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage) {
$this->entityTypeId = $entity_type->id();
$this->storage = $storage;
$this->entityType = $entity_type;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.