public function SchedulerModerationConstraintValidator::__construct in Scheduler content moderation integration 8
SchedulerModerationConstraintValidator constructor.
Parameters
\Drupal\Core\Session\AccountProxyInterface $account: The current user.
\Drupal\content_moderation\StateTransitionValidationInterface $stateTransitionValidation: The state transition service.
File
- src/
Plugin/ Validation/ Constraint/ SchedulerModerationConstraintValidator.php, line 41
Class
- SchedulerModerationConstraintValidator
- Validates the SchedulerModeration constraint.
Namespace
Drupal\scheduler_content_moderation_integration\Plugin\Validation\ConstraintCode
public function __construct(AccountProxyInterface $account, StateTransitionValidationInterface $stateTransitionValidation) {
$this->account = $account;
$this->stateTransitionValidation = $stateTransitionValidation;
}