public function LingotekContentModerationConfigurationService::getUploadStatus in Lingotek Translation 3.7.x
Same name and namespace in other branches
- 8.2 src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
- 4.0.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
- 3.0.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
- 3.1.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
- 3.2.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
- 3.3.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
- 3.4.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
- 3.5.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
- 3.6.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
- 3.8.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
Gets the moderation status ID that triggers an upload.
Parameters
string $entity_type_id: An entity type ID.
string $bundle: A bundle.
Return value
string The moderation status ID that triggers an upload.
Overrides LingotekModerationConfigurationServiceInterface::getUploadStatus
File
- src/
Moderation/ LingotekContentModerationConfigurationService.php, line 40
Class
- LingotekContentModerationConfigurationService
- Service for managing content moderation settings in the Lingotek integration.
Namespace
Drupal\lingotek\ModerationCode
public function getUploadStatus($entity_type_id, $bundle) {
$config = $this->configFactory
->get('lingotek.settings');
$upload_status = $config
->get('translate.entity.' . $entity_type_id . '.' . $bundle . '.content_moderation.upload_status');
return $upload_status;
}