You are here

public function EntityListBuilder::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 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.

16 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.
ConfigTranslationBlockListBuilder::__construct in core/modules/config_translation/src/Controller/ConfigTranslationBlockListBuilder.php
Constructs a new EntityListBuilder object.
ConfigTranslationFieldListBuilder::__construct in core/modules/config_translation/src/Controller/ConfigTranslationFieldListBuilder.php
Constructs a new ConfigTranslationFieldListBuilder object.
DateFormatListBuilder::__construct in core/modules/system/src/DateFormatListBuilder.php
Constructs a new DateFormatListBuilder object.

... See full list

16 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.
ConfigTranslationBlockListBuilder::__construct in core/modules/config_translation/src/Controller/ConfigTranslationBlockListBuilder.php
Constructs a new EntityListBuilder object.
ConfigTranslationFieldListBuilder::__construct in core/modules/config_translation/src/Controller/ConfigTranslationFieldListBuilder.php
Constructs a new ConfigTranslationFieldListBuilder object.
DateFormatListBuilder::__construct in core/modules/system/src/DateFormatListBuilder.php
Constructs a new DateFormatListBuilder object.

... See full list

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;
}