You are here

public function LingotekConfigTranslationServiceInterface::cancelDocumentTarget in Lingotek Translation 3.7.x

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

Cancels a translation for a given entity in the given locale.

Parameters

\Drupal\Core\Config\Entity\ConfigEntityInterface &$entity: The entity which target we want to cancel.

string $locale: Lingotek translation language which we want to modify.

Throws

\Drupal\lingotek\Exception\LingotekDocumentTargetAlreadyCompletedException If the target was already completed.

1 method overrides LingotekConfigTranslationServiceInterface::cancelDocumentTarget()
LingotekConfigTranslationService::cancelDocumentTarget in src/LingotekConfigTranslationService.php
Cancels a translation for a given entity in the given locale.

File

src/LingotekConfigTranslationServiceInterface.php, line 327

Class

LingotekConfigTranslationServiceInterface
Service for managing Lingotek configuration translations.

Namespace

Drupal\lingotek

Code

public function cancelDocumentTarget(ConfigEntityInterface &$entity, $locale);