ViewListBuilder::__construct

public ViewListBuilder::__construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, PluginManagerInterface $display_manager)

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 53

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;
}
doc_Drupal
2016-10-29 09:54:39
Comments
Leave a Comment

Please login to continue.