You are here

public function ContextListBuilder::__construct in Context 8

Same name and namespace in other branches
  1. 8.4 modules/context_ui/src/ContextListBuilder.php \Drupal\context_ui\ContextListBuilder::__construct()
  2. 8.0 modules/context_ui/src/ContextListBuilder.php \Drupal\context_ui\ContextListBuilder::__construct()

Constructs a new ContextListBuilder object.

Parameters

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

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

\Drupal\context\ContextManager $contextManager: The Context module context manager.

\Drupal\Core\Form\FormBuilderInterface $formBuilder: The Drupal form builder.

Overrides EntityListBuilder::__construct

File

modules/context_ui/src/ContextListBuilder.php, line 49

Class

ContextListBuilder

Namespace

Drupal\context_ui

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, ContextManager $contextManager, FormBuilderInterface $formBuilder) {
  parent::__construct($entity_type, $storage);
  $this->contextManager = $contextManager;
  $this->formBuilder = $formBuilder;
}