You are here

public function RuleComponentForm::__construct in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Form/RuleComponentForm.php \Drupal\rng\Form\RuleComponentForm::__construct()
  2. 8 src/Form/RuleComponentForm.php \Drupal\rng\Form\RuleComponentForm::__construct()

Constructs a new action form.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity manager.

\Drupal\Core\Action\ActionManager $action_manager: The action manager.

\Drupal\Core\Condition\ConditionManager $condition_manager: The condition manager.

Overrides ContentEntityForm::__construct

File

src/Form/RuleComponentForm.php, line 58

Class

RuleComponentForm
Form controller for rng rule components.

Namespace

Drupal\rng\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, ActionManager $action_manager, ConditionManager $condition_manager) {
  parent::__construct($entity_repository);
  $this->actionManager = $action_manager;
  $this->conditionManager = $condition_manager;
}