You are here

public function MassContactMessageConfirmForm::__construct in Mass Contact 8

Constructs a MassContactMessageConfirmForm object.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match object.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

\Drupal\mass_contact\MassContactInterface $mass_contact: The mass contact service.

\Drupal\user\PrivateTempStoreFactory $temp_store_factory: The factory for the temp store object.

File

src/Form/MassContactMessageConfirmForm.php, line 74

Class

MassContactMessageConfirmForm
Form object for the Mass Contact Confirm form.

Namespace

Drupal\mass_contact\Form

Code

public function __construct(RouteMatchInterface $route_match, EntityTypeManagerInterface $entity_type_manager, MassContactInterface $mass_contact, PrivateTempStoreFactory $temp_store_factory) {
  $this->massContactMessage = $route_match
    ->getParameter('mass_contact_confirm_info')['mass_contact_message'];
  $this->messageConfigs = $route_match
    ->getParameter('mass_contact_confirm_info')['configuration'];
  $this->config = $this
    ->configFactory()
    ->get('mass_contact.settings');
  $this->entityTypeManager = $entity_type_manager;
  $this->massContact = $mass_contact;
  $this->tempStoreFactory = $temp_store_factory;
}