You are here

public function MessageNotifyForm::__construct in Message UI 8

Constructs a ContentEntityForm object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager:

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

\Drupal\message_notify\MessageNotifier $message_notifier: The message notifier service.

\Drupal\message_notify\Plugin\Notifier\Manager $message_notify_manager: Message notifier manager service.

\Drupal\message_notify_ui\MessageNotifyUiSenderSettingsFormManager $message_notify_ui_setting_form_manager: The message notify UI sender settings form manager.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager interface.

File

modules/message_notify_ui/src/Form/MessageNotifyForm.php, line 103

Class

MessageNotifyForm
Provides a form for send a message entity.

Namespace

Drupal\message_notify_ui\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time, MessageNotifier $message_notifier, Manager $message_notify_manager, MessageNotifyUiSenderSettingsFormManager $message_notify_ui_setting_form_manager, LanguageManagerInterface $language_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info ?: \Drupal::service('entity_type.bundle.info');
  $this->time = $time ?: \Drupal::service('datetime.time');
  $this->messageNotifier = $message_notifier;
  $this->messageNotifierManager = $message_notify_manager;
  $this->messageNotifyUiSenderSettingsForm = $message_notify_ui_setting_form_manager;
  $this->languageManager = $language_manager;
}