You are here

protected function StateTransitionValidation::transitionStateQuery in Workbench Moderation 8

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

Generates an entity query for transition states.

Return value

\Drupal\Core\Entity\Query\QueryInterface A transition state query.

File

src/StateTransitionValidation.php, line 238

Class

StateTransitionValidation
Validates whether a certain state transition is allowed.

Namespace

Drupal\workbench_moderation

Code

protected function transitionStateQuery() {
  return $this->entityTypeManager
    ->getStorage('moderation_state_transition')
    ->getQuery('AND');
}