You are here

public function LingotekContentModerationConfigurationService::getUploadStatus in Lingotek Translation 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
  2. 4.0.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
  3. 3.1.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
  4. 3.2.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
  5. 3.3.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
  6. 3.4.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
  7. 3.5.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
  8. 3.6.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
  9. 3.7.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::getUploadStatus()
  10. 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\Moderation

Code

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;
}