You are here

protected function StateTransitionValidation::transitionStateQuery in Workbench Moderation 8.2

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

Return value

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

File

src/StateTransitionValidation.php, line 245

Class

StateTransitionValidation
Validates whether a certain state transition is allowed.

Namespace

Drupal\workbench_moderation

Code

protected function transitionStateQuery() {
  return $this->queryFactory
    ->get('moderation_state_transition', 'AND');
}