public function ConditionAddForm::__construct in Block Visibility Groups 8
Constructs a new ConditionAddForm.
Parameters
\Drupal\Core\Condition\ConditionManager $condition_manager: The condition manager.
Overrides ConditionFormBase::__construct
File
- src/
Form/ ConditionAddForm.php, line 27
Class
- ConditionAddForm
- Provides a form for adding a new condition.
Namespace
Drupal\block_visibility_groups\FormCode
public function __construct(ConditionManager $condition_manager, ContextRepositoryInterface $context_repository) {
$this->conditionManager = $condition_manager;
$this->contextRepository = $context_repository;
}