You are here

public function ModerationStateValidator::__construct in Workbench Moderation 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/Validation/Constraint/ModerationStateValidator.php \Drupal\workbench_moderation\Plugin\Validation\Constraint\ModerationStateValidator::__construct()

Creates a new ModerationStateValidator instance.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\workbench_moderation\StateTransitionValidation $validation: The state transition validation.

\Drupal\workbench_moderation\ModerationInformationInterface $moderation_information: The moderation information.

File

src/Plugin/Validation/Constraint/ModerationStateValidator.php, line 45

Class

ModerationStateValidator

Namespace

Drupal\workbench_moderation\Plugin\Validation\Constraint

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, StateTransitionValidation $validation, ModerationInformationInterface $moderation_information) {
  $this->validation = $validation;
  $this->entityTypeManager = $entity_type_manager;
  $this->moderationInformation = $moderation_information;
}