You are here

public function Notification::__construct in Content Moderation Notifications 8.3

Same name and namespace in other branches
  1. 8.2 src/Notification.php \Drupal\content_moderation_notifications\Notification::__construct()

Creates a new ModerationInformation instance.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current user.

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

\Drupal\Core\Mail\MailManagerInterface $mail_manager: The mail manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

\Drupal\content_moderation_notifications\NotificationInformationInterface $notification_information: The notification information service.

\Drupal\token\TokenEntityMapperInterface $token_entity_mappper: The token entity mapper service.

File

src/Notification.php, line 77

Class

Notification
General service for moderation-related questions about Entity API.

Namespace

Drupal\content_moderation_notifications

Code

public function __construct(AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager, MailManagerInterface $mail_manager, ModuleHandlerInterface $module_handler, NotificationInformationInterface $notification_information, TokenEntityMapperInterface $token_entity_mappper = NULL) {
  $this->currentUser = $current_user;
  $this->entityTypeManager = $entity_type_manager;
  $this->mailManager = $mail_manager;
  $this->moduleHandler = $module_handler;
  $this->notificationInformation = $notification_information;
  $this->tokenEntityMapper = $token_entity_mappper;
}