You are here

public function NotificationInformation::__construct in Content Moderation Notifications 8.2

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

Creates a new NotificationInformation instance.

Parameters

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

\Drupal\content_moderation\ModerationInformationInterface $moderation_information: The bundle information service.

File

src/NotificationInformation.php, line 36

Class

NotificationInformation
Service for notification related questions about the moderated entity.

Namespace

Drupal\content_moderation_notifications

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ModerationInformationInterface $moderation_information) {
  $this->entityTypeManager = $entity_type_manager;
  $this->moderationInformation = $moderation_information;
}