You are here

public function MessageActionForm::__construct in RNG - Events and Registrations 8

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

Constructs a new MessageActionForm object.

Parameters

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

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

\Drupal\rng\EventManagerInterface $event_manager: The RNG event manager.

File

src/Form/MessageActionForm.php, line 50

Class

MessageActionForm
Creates a rule with a rng_courier_message action.

Namespace

Drupal\rng\Form

Code

public function __construct(ActionManager $action_manager, EntityManagerInterface $entity_manager, EventManagerInterface $event_manager) {
  $this->actionPlugin = $action_manager
    ->createInstance('rng_courier_message');
  $this->entityManager = $entity_manager;
  $this->eventManager = $event_manager;
}