public function ModerationStateValidator::__construct in Workbench Moderation 8
Same name and namespace in other branches
- 8.2 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.
\Drupal\Core\Session\AccountInterface $account: The moderation information.
File
- src/
Plugin/ Validation/ Constraint/ ModerationStateValidator.php, line 61
Class
- ModerationStateValidator
- Class for validating moderations states.
Namespace
Drupal\workbench_moderation\Plugin\Validation\ConstraintCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, StateTransitionValidation $validation, ModerationInformationInterface $moderation_information, AccountInterface $account) {
$this->validation = $validation;
$this->entityTypeManager = $entity_type_manager;
$this->moderationInformation = $moderation_information;
$this->currentUser = $account;
}