You are here

public function StateTransitionValidation::__construct in Workbench Moderation 8.2

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

Constructs a new StateTransitionValidation.

Parameters

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

\Drupal\Core\Entity\Query\QueryFactory $query_factory: The entity query factory.

File

src/StateTransitionValidation.php, line 42

Class

StateTransitionValidation
Validates whether a certain state transition is allowed.

Namespace

Drupal\workbench_moderation

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, QueryFactory $query_factory) {
  $this->entityTypeManager = $entity_type_manager;
  $this->queryFactory = $query_factory;
}