You are here

protected function StateTransitionValidation::transitionStorage in Workbench Moderation 8

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

Returns the transition entity storage service.

Return value

\Drupal\Core\Entity\EntityStorageInterface Returns Storage handler for transition entities.

File

src/StateTransitionValidation.php, line 248

Class

StateTransitionValidation
Validates whether a certain state transition is allowed.

Namespace

Drupal\workbench_moderation

Code

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