function ReactionRuleAddForm::__construct

Constructs a new reaction rule form.

Parameters

\Drupal\rules\Engine\ExpressionManagerInterface $expression_manager: The expression manager.

\Drupal\rules\Core\RulesEventManager $event_manager: The Rules event manager.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_bundle_info: The entity type bundle information manager.

Overrides RulesComponentFormBase::__construct

File

src/Form/ReactionRuleAddForm.php, line 27

Class

ReactionRuleAddForm
Provides a form to add a reaction rule.

Namespace

Drupal\rules\Form

Code

public function __construct(ExpressionManagerInterface $expression_manager, RulesEventManager $event_manager, EntityTypeBundleInfoInterface $entity_bundle_info) {
    parent::__construct($expression_manager);
    $this->eventManager = $event_manager;
    $this->entityBundleInfo = $entity_bundle_info;
}