public function LingotekWorkbenchModerationSettingsForm::getModerationUploadStatuses in Lingotek Translation 3.2.x
Same name and namespace in other branches
- 8.2 src/Moderation/LingotekWorkbenchModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekWorkbenchModerationSettingsForm::getModerationUploadStatuses()
- 4.0.x src/Moderation/LingotekWorkbenchModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekWorkbenchModerationSettingsForm::getModerationUploadStatuses()
- 3.1.x src/Moderation/LingotekWorkbenchModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekWorkbenchModerationSettingsForm::getModerationUploadStatuses()
- 3.3.x src/Moderation/LingotekWorkbenchModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekWorkbenchModerationSettingsForm::getModerationUploadStatuses()
- 3.4.x src/Moderation/LingotekWorkbenchModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekWorkbenchModerationSettingsForm::getModerationUploadStatuses()
- 3.5.x src/Moderation/LingotekWorkbenchModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekWorkbenchModerationSettingsForm::getModerationUploadStatuses()
- 3.6.x src/Moderation/LingotekWorkbenchModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekWorkbenchModerationSettingsForm::getModerationUploadStatuses()
- 3.7.x src/Moderation/LingotekWorkbenchModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekWorkbenchModerationSettingsForm::getModerationUploadStatuses()
- 3.8.x src/Moderation/LingotekWorkbenchModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekWorkbenchModerationSettingsForm::getModerationUploadStatuses()
Gets the moderation statuses.
Parameters
string $entity_type_id: The entity type id.
string $bundle: The bundle id.
Return value
array Array with statuses ids as keys and label as value.
Overrides LingotekModerationSettingsFormInterface::getModerationUploadStatuses
2 calls to LingotekWorkbenchModerationSettingsForm::getModerationUploadStatuses()
- LingotekWorkbenchModerationSettingsForm::form in src/
Moderation/ LingotekWorkbenchModerationSettingsForm.php - Gets the subform for configuring the settings for a given bundle.
- LingotekWorkbenchModerationSettingsForm::getModerationDownloadTransitions in src/
Moderation/ LingotekWorkbenchModerationSettingsForm.php - Gets the default download transition.
File
- src/
Moderation/ LingotekWorkbenchModerationSettingsForm.php, line 95
Class
- LingotekWorkbenchModerationSettingsForm
- Moderation settings form for the Lingotek workbench_moderation integration.
Namespace
Drupal\lingotek\ModerationCode
public function getModerationUploadStatuses($entity_type_id, $bundle) {
$states = $this->entityTypeManager
->getStorage('moderation_state')
->loadMultiple();
$values = [];
foreach ($states as $state_id => $state) {
$values[$state_id] = $state
->label();
}
return $values;
}