You are here

public function LingotekContentTranslationServiceInterface::deleteDocument in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 8 src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::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.

Deprecated

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

1 method overrides LingotekContentTranslationServiceInterface::deleteDocument()
LingotekContentTranslationService::deleteDocument in src/LingotekContentTranslationService.php
Deletes a document from the server and all related local data.

File

src/LingotekContentTranslationServiceInterface.php, line 298

Class

LingotekContentTranslationServiceInterface
Service for managing Lingotek content translations.

Namespace

Drupal\lingotek

Code

public function deleteDocument(ContentEntityInterface &$entity);