You are here

public function StateTransitionValidation::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/content_moderation/src/StateTransitionValidation.php \Drupal\content_moderation\StateTransitionValidation::__construct()

Constructs a new StateTransitionValidation.

Parameters

\Drupal\content_moderation\ModerationInformationInterface $moderation_info: The moderation information service.

File

core/modules/content_moderation/src/StateTransitionValidation.php, line 36

Class

StateTransitionValidation
Validates whether a certain state transition is allowed.

Namespace

Drupal\content_moderation

Code

public function __construct(ModerationInformationInterface $moderation_info) {
  $this->moderationInfo = $moderation_info;
}