You are here

public function LingotekContentTranslationService::deleteDocument in Lingotek Translation 8

Same name and namespace in other branches
  1. 8.2 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

ContentEntityInterface The entity.

Overrides LingotekContentTranslationServiceInterface::deleteDocument

1 call to LingotekContentTranslationService::deleteDocument()
LingotekContentTranslationService::deleteMetadata in src/LingotekContentTranslationService.php
Deletes all local metadata related to an entity.

File

src/LingotekContentTranslationService.php, line 733
Contains \Drupal\lingotek\LingotekContentTranslationService.

Class

LingotekContentTranslationService
Service for managing Lingotek content translations.

Namespace

Drupal\lingotek

Code

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