You are here

public function ViewListBuilder::__construct in Drupal 10

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

Constructs a new ViewListBuilder object.

Parameters

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

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

\Drupal\Component\Plugin\PluginManagerInterface $display_manager: The views display plugin manager to use.

Overrides EntityListBuilder::__construct

File

core/modules/views_ui/src/ViewListBuilder.php, line 50

Class

ViewListBuilder
Defines a class to build a listing of view entities.

Namespace

Drupal\views_ui

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, PluginManagerInterface $display_manager) {
  parent::__construct($entity_type, $storage);
  $this->displayManager = $display_manager;

  // This list builder uses client-side filters which requires all entities to
  // be listed, disable the pager.
  // @todo https://www.drupal.org/node/2536826 change the filtering to support
  //   a pager.
  $this->limit = FALSE;
}