You are here

public function ConfigPagesListBuilder::__construct in Config Pages 8

Same name and namespace in other branches
  1. 8.3 src/ConfigPagesListBuilder.php \Drupal\config_pages\ConfigPagesListBuilder::__construct()
  2. 8.2 src/ConfigPagesListBuilder.php \Drupal\config_pages\ConfigPagesListBuilder::__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.

Overrides EntityListBuilder::__construct

File

src/ConfigPagesListBuilder.php, line 38

Class

ConfigPagesListBuilder
Defines a class to build a listing of custom config_pages entities.

Namespace

Drupal\config_pages

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, EntityStorageInterface $cpt_storage, ConfigPagesContextManagerInterface $cp_context) {
  parent::__construct($entity_type, $storage);
  $this->cpt_storage = $cpt_storage;
  $this->cp_context = $cp_context;
}