You are here

public function LingotekContentModerationConfigurationService::setUploadStatus in Lingotek Translation 3.6.x

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

Code

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