You are here

public function TemplateForm::__construct in Workbench Email 8

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

Constructs a new TemplateForm object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: Entity field manager.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_bundle_info: The entity type bundle info.

\Drupal\workbench_moderation\ModerationInformationInterface $moderation_info: The moderation info service.

File

src/Form/TemplateForm.php, line 78

Class

TemplateForm
Class TemplateForm.

Namespace

Drupal\workbench_email\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, EntityTypeBundleInfoInterface $entity_bundle_info, $moderation_info, ModuleHandlerInterface $module_handler, Messenger $messenger) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityFieldManager = $entity_field_manager;
  $this->entityBundleInfo = $entity_bundle_info;
  $this->moderationInfo = $moderation_info;
  $this->moduleHandler = $module_handler;
  $this->messenger = $messenger;
}