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