You are here

public function LingotekWorkbenchModerationConfigurationService::getDownloadTransition in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 4.0.x src/Moderation/LingotekWorkbenchModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekWorkbenchModerationConfigurationService::getDownloadTransition()
  2. 3.1.x src/Moderation/LingotekWorkbenchModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekWorkbenchModerationConfigurationService::getDownloadTransition()
  3. 3.2.x src/Moderation/LingotekWorkbenchModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekWorkbenchModerationConfigurationService::getDownloadTransition()
  4. 3.3.x src/Moderation/LingotekWorkbenchModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekWorkbenchModerationConfigurationService::getDownloadTransition()
  5. 3.4.x src/Moderation/LingotekWorkbenchModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekWorkbenchModerationConfigurationService::getDownloadTransition()
  6. 3.5.x src/Moderation/LingotekWorkbenchModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekWorkbenchModerationConfigurationService::getDownloadTransition()
  7. 3.6.x src/Moderation/LingotekWorkbenchModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekWorkbenchModerationConfigurationService::getDownloadTransition()
  8. 3.7.x src/Moderation/LingotekWorkbenchModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekWorkbenchModerationConfigurationService::getDownloadTransition()
  9. 3.8.x src/Moderation/LingotekWorkbenchModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekWorkbenchModerationConfigurationService::getDownloadTransition()

Gets the moderation transition ID that triggers a download.

Parameters

string $entity_type_id: An entity type ID.

string $bundle: A bundle.

Return value

string The moderation transition ID that should be triggered after a download.

Overrides LingotekModerationConfigurationServiceInterface::getDownloadTransition

File

src/Moderation/LingotekWorkbenchModerationConfigurationService.php, line 49

Class

LingotekWorkbenchModerationConfigurationService
Manages workbench moderation settings in the Lingotek integration.

Namespace

Drupal\lingotek\Moderation

Code

public function getDownloadTransition($entity_type_id, $bundle) {
  $config = $this->configFactory
    ->get('lingotek.settings');
  $download_transition = $config
    ->get('translate.entity.' . $entity_type_id . '.' . $bundle . '.workbench_moderation.download_transition');
  return $download_transition;
}