You are here

public function EntityDisplayModeListBuilder::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/field_ui/src/EntityDisplayModeListBuilder.php \Drupal\field_ui\EntityDisplayModeListBuilder::__construct()
  2. 9 core/modules/field_ui/src/EntityDisplayModeListBuilder.php \Drupal\field_ui\EntityDisplayModeListBuilder::__construct()

Constructs a new EntityDisplayModeListBuilder object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.

\Drupal\Core\Entity\EntityTypeInterface[] $entity_types: List of all entity types.

Overrides EntityListBuilder::__construct

File

core/modules/field_ui/src/EntityDisplayModeListBuilder.php, line 36

Class

EntityDisplayModeListBuilder
Defines a class to build a listing of view mode entities.

Namespace

Drupal\field_ui

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, array $entity_types) {
  parent::__construct($entity_type, $storage);

  // Override the default limit (50) in order to display all view modes.
  $this->limit = FALSE;
  $this->entityTypes = $entity_types;
}