You are here

protected function StateTransitionValidation::stateStorage in Workbench Moderation 8.2

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

Returns the state entity storage service.

Return value

\Drupal\Core\Entity\EntityStorageInterface

File

src/StateTransitionValidation.php, line 263

Class

StateTransitionValidation
Validates whether a certain state transition is allowed.

Namespace

Drupal\workbench_moderation

Code

protected function stateStorage() {
  return $this->entityTypeManager
    ->getStorage('moderation_state');
}