You are here

public function MessageForm::__construct in Courier 8

Same name and namespace in other branches
  1. 2.x courier_message_composer/src/Form/MessageForm.php \Drupal\courier_message_composer\Form\MessageForm::__construct()

Constructs a MessageForm object.

Parameters

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

\Drupal\courier\Service\IdentityChannelManagerInterface $identity_channel_manager: The identity channel manager.

\Drupal\courier\Service\CourierManagerInterface $courier_manager: The courier manager.

File

courier_message_composer/src/Form/MessageForm.php, line 56

Class

MessageForm
Create a message.

Namespace

Drupal\courier_message_composer\Form

Code

public function __construct(EntityManagerInterface $entity_manager, IdentityChannelManagerInterface $identity_channel_manager, CourierManagerInterface $courier_manager) {
  $this->entityManager = $entity_manager;
  $this->identityChannelManager = $identity_channel_manager;
  $this->courierManager = $courier_manager;
}