You are here

public function LingotekConfigurationService::setDeleteRemoteAfterDisassociation in Lingotek Translation 8

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

Sets if remote documents must be deleted after disassociation.

Parameters

boolean $delete: TRUE if remote documents must be deleted, FALSE otherwise.

Overrides LingotekConfigurationServiceInterface::setDeleteRemoteAfterDisassociation

File

src/LingotekConfigurationService.php, line 258
Contains \Drupal\lingotek\LingotekConfigurationService.

Class

LingotekConfigurationService
Service for managing lingotek configuration.

Namespace

Drupal\lingotek

Code

public function setDeleteRemoteAfterDisassociation($delete) {
  $config = \Drupal::configFactory()
    ->getEditable('lingotek.settings');
  $config
    ->set('preference.delete_tms_documents_upon_disassociation', $delete)
    ->save();
}