protected function StateTransitionValidation::stateStorage in Workbench Moderation 8
Same name and namespace in other branches
- 8.2 src/StateTransitionValidation.php \Drupal\workbench_moderation\StateTransitionValidation::stateStorage()
Returns the state entity storage service.
Return value
\Drupal\Core\Entity\EntityStorageInterface Returns storage handler for moderation states.
File
- src/
StateTransitionValidation.php, line 258
Class
- StateTransitionValidation
- Validates whether a certain state transition is allowed.
Namespace
Drupal\workbench_moderationCode
protected function stateStorage() {
return $this->entityTypeManager
->getStorage('moderation_state');
}