You are here

public function ContextFormBase::__construct in Context 8.4

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

Construct a new context form.

Parameters

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

\Drupal\context\Entity\ContextRepositoryInterface $contextRepository: The Drupal context repository.

1 method overrides ContextFormBase::__construct()
ContextDuplicateForm::__construct in modules/context_ui/src/Form/ContextDuplicateForm.php
Constructor.

File

modules/context_ui/src/Form/ContextFormBase.php, line 48

Class

ContextFormBase
Provides a context form base.

Namespace

Drupal\context_ui\Form

Code

public function __construct(ContextManager $contextManager, ContextRepositoryInterface $contextRepository) {
  $this->contextManager = $contextManager;
  $this->contextRepository = $contextRepository;
}