public function StateTransitionValidation::__construct in Drupal 8
Same name and namespace in other branches
- 9 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_moderationCode
public function __construct(ModerationInformationInterface $moderation_info) {
$this->moderationInfo = $moderation_info;
}