function EntityListBuilder::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Entity/EntityListBuilder.php \Drupal\Core\Entity\EntityListBuilder::__construct()
  2. 10 core/lib/Drupal/Core/Entity/EntityListBuilder.php \Drupal\Core\Entity\EntityListBuilder::__construct()
  3. 8.9.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.

9 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.
DateFormatListBuilder::__construct in core/modules/system/src/DateFormatListBuilder.php
Constructs a new DateFormatListBuilder object.
DraggableListBuilder::__construct in core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php
Constructs a new EntityListBuilder object.
EntityDisplayModeListBuilder::__construct in core/modules/field_ui/src/EntityDisplayModeListBuilder.php
Constructs a new EntityDisplayModeListBuilder object.

... See full list

3 methods override EntityListBuilder::__construct()
ActionListBuilder::__construct in core/modules/action/src/ActionListBuilder.php
Constructs a new ActionListBuilder object.
DraggableListBuilder::__construct in core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php
Constructs a new EntityListBuilder object.
MediaListBuilder::__construct in core/modules/media/src/MediaListBuilder.php
Constructs a new MediaListBuilder object.

File

core/lib/Drupal/Core/Entity/EntityListBuilder.php, line 69

Class

EntityListBuilder
Defines a generic implementation to build a listing of entities.

Namespace

Drupal\Core\Entity

Code

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.