You are here

public function ReactionRuleAddForm::__construct in Rules 8.3

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 42

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;
}