You are here

public function ConstraintValidatorBase::__construct in Scheduler content moderation integration 8

SchedulerModerationConstraintValidator constructor.

Parameters

\Drupal\content_moderation\ModerationInformationInterface $moderationInformation: The content moderation information service.

\Drupal\Core\Session\AccountInterface $account: The current user.

File

src/Plugin/Validation/Constraint/ConstraintValidatorBase.php, line 41

Class

ConstraintValidatorBase
Base class for Scheduler Content Moderation Integration validators.

Namespace

Drupal\scheduler_content_moderation_integration\Plugin\Validation\Constraint

Code

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