StateTransitionValidation::transitionStateQuery

protected StateTransitionValidation::transitionStateQuery()

Returns a transition state entity query.

Return value

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

File

core/modules/content_moderation/src/StateTransitionValidation.php, line 208

Class

StateTransitionValidation
Validates whether a certain state transition is allowed.

Namespace

Drupal\content_moderation

Code

protected function transitionStateQuery() {
  return $this->queryFactory->get('moderation_state_transition', 'AND');
}
doc_Drupal
2016-10-29 09:44:18
Comments
Leave a Comment

Please login to continue.