public function LingotekContentModerationConfigurationService::setDownloadTransition in Lingotek Translation 3.7.x
Same name and namespace in other branches
- 8.2 src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::setDownloadTransition()
- 4.0.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::setDownloadTransition()
- 3.0.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::setDownloadTransition()
- 3.1.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::setDownloadTransition()
- 3.2.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::setDownloadTransition()
- 3.3.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::setDownloadTransition()
- 3.4.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::setDownloadTransition()
- 3.5.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::setDownloadTransition()
- 3.6.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::setDownloadTransition()
- 3.8.x src/Moderation/LingotekContentModerationConfigurationService.php \Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService::setDownloadTransition()
Sets the moderation transition ID that triggers a download.
Parameters
string $entity_type_id: An entity type ID.
string $bundle: A bundle.
string $transition: The moderation transition ID.
Return value
string The moderation transition ID that should be triggered after a download.
Overrides LingotekModerationConfigurationServiceInterface::setDownloadTransition
File
- src/
Moderation/ LingotekContentModerationConfigurationService.php, line 68
Class
- LingotekContentModerationConfigurationService
- Service for managing content moderation settings in the Lingotek integration.
Namespace
Drupal\lingotek\ModerationCode
public function setDownloadTransition($entity_type_id, $bundle, $transition) {
$config = $this->configFactory
->getEditable('lingotek.settings');
$config
->set('translate.entity.' . $entity_type_id . '.' . $bundle . '.content_moderation.download_transition', $transition);
$config
->save();
return $transition;
}