function StateTransitionValidation::__construct

Same name in other branches
  1. 9 core/modules/content_moderation/src/StateTransitionValidation.php \Drupal\content_moderation\StateTransitionValidation::__construct()
  2. 8.9.x core/modules/content_moderation/src/StateTransitionValidation.php \Drupal\content_moderation\StateTransitionValidation::__construct()
  3. 10 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.