You are here

public function ConfigPagesListBuilder::__construct in Config Pages 8.2

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

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, AccountProxyInterface $account) {
  parent::__construct($entity_type, $storage);
  $this->cptStorage = $cpt_storage;
  $this->cpContext = $cp_context;
  $this->account = $account;
}