You are here

public function TransitionManager::__construct in Lightning Scheduler 8

TransitionManager constructor.

Parameters

ModerationInformationInterface $moderation_information: The moderation information service.

AccountInterface $current_user: The currently logged-in user.

EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

LoggerChannelInterface $logger: The logger channel.

TranslationInterface $translation: (optional) The string translation service.

File

src/TransitionManager.php, line 69

Class

TransitionManager
@internal This is an internal part of Lightning Scheduler and may be changed or removed at any time without warning. It should not be used by external code in any way.

Namespace

Drupal\lightning_scheduler

Code

public function __construct(ModerationInformationInterface $moderation_information, AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager, LoggerChannelInterface $logger, TranslationInterface $translation = NULL) {
  $this->moderationInformation = $moderation_information;
  $this->currentUser = $current_user;
  $this->entityTypeManager = $entity_type_manager;
  $this->logger = $logger;
  if ($translation) {
    $this
      ->setStringTranslation($translation);
  }
}