protected function StateChangeDeriver::getAvailableStates in Workbench Moderation Actions 8
Gets the available moderation states.
Return value
\Drupal\Core\Entity\EntityInterface[] An array of entity objects indexed by their IDs.
Returns an empty array if no matching entities are found.
1 call to StateChangeDeriver::getAvailableStates()
- StateChangeDeriver::getDerivativeDefinitions in src/
Plugin/ Deriver/ StateChangeDeriver.php - Gets the definition of all derivatives of a base plugin.
File
- src/
Plugin/ Deriver/ StateChangeDeriver.php, line 74
Class
- StateChangeDeriver
- Derives which moderation states are available.
Namespace
Drupal\workbench_moderation_actions\Plugin\DeriverCode
protected function getAvailableStates() {
return $this->entityTypeManager
->getStorage('moderation_state')
->loadMultiple();
}