You are here

public function LingotekContentTranslationService::deleteDocument in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 8 src/LingotekContentTranslationService.php \Drupal\lingotek\LingotekContentTranslationService::deleteDocument()

Deletes a document from the server and all related local data.

Parameters

\Drupal\Core\Entity\ContentEntityInterface &$entity: The entity which we want to delete.

Return value

\Drupal\Core\Entity\ContentEntityInterface The entity.

Overrides LingotekContentTranslationServiceInterface::deleteDocument

Deprecated

in 8.x-2.14, will be removed in 8.x-2.16. Use ::cancelDocument instead.

File

src/LingotekContentTranslationService.php, line 1135

Class

LingotekContentTranslationService
Service for managing Lingotek content translations.

Namespace

Drupal\lingotek

Code

public function deleteDocument(ContentEntityInterface &$entity) {
  return $this->lingotek
    ->deleteDocument($this
    ->getDocumentId($entity));
}