You are here

public function SupportsContentModerationAccessCheck::__construct in Scheduled Transitions 8

Same name and namespace in other branches
  1. 2.x src/Access/SupportsContentModerationAccessCheck.php \Drupal\scheduled_transitions\Access\SupportsContentModerationAccessCheck::__construct()

Constructs a new SupportsContentModerationAccessCheck.

Parameters

\Drupal\content_moderation\ModerationInformationInterface $moderationInformation: General service for moderation-related questions about Entity API.

\Drupal\scheduled_transitions\ScheduledTransitionsUtilityInterface $scheduledTransitionsUtility: Utilities for Scheduled Transitions module.

File

src/Access/SupportsContentModerationAccessCheck.php, line 54

Class

SupportsContentModerationAccessCheck
Check if entity supports content moderation.

Namespace

Drupal\scheduled_transitions\Access

Code

public function __construct(ModerationInformationInterface $moderationInformation, ScheduledTransitionsUtilityInterface $scheduledTransitionsUtility) {
  $this->moderationInformation = $moderationInformation;
  $this->scheduledTransitionsUtility = $scheduledTransitionsUtility;
}