You are here

public function EmailOverrideForm::__construct in Easy Email 8

Same name and namespace in other branches
  1. 2.0.x modules/easy_email_override/src/Form/EmailOverrideForm.php \Drupal\easy_email_override\Form\EmailOverrideForm::__construct()

EmailOverrideForm constructor.

Parameters

\Drupal\easy_email_override\Service\DeclaredEmailManagerInterface $emailManager:

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager:

EntityFieldManagerInterface $entityFieldManager:

File

modules/easy_email_override/src/Form/EmailOverrideForm.php, line 44

Class

EmailOverrideForm
Class EmailOverrideForm.

Namespace

Drupal\easy_email_override\Form

Code

public function __construct(DeclaredEmailManagerInterface $emailManager, EntityTypeManagerInterface $entityTypeManager, EntityFieldManagerInterface $entityFieldManager) {
  $this->emailManager = $emailManager;
  $this->entityTypeManager = $entityTypeManager;
  $this->entityFieldManager = $entityFieldManager;
  $this->easyEmailTypeStorage = $entityTypeManager
    ->getStorage('easy_email_type');
}