You are here

public function LingotekConfigTranslationService::deleteDocument in Lingotek Translation 8

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

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

Parameters

\Drupal\Core\Config\Entity\ConfigEntityInterface $entity: The entity which we want to delete.

Return value

ContentEntityInterface The entity.

Overrides LingotekConfigTranslationServiceInterface::deleteDocument

1 call to LingotekConfigTranslationService::deleteDocument()
LingotekConfigTranslationService::deleteMetadata in src/LingotekConfigTranslationService.php
Deletes metadata.

File

src/LingotekConfigTranslationService.php, line 567
Contains \Drupal\lingotek\LingotekConfigTranslationService.

Class

LingotekConfigTranslationService
Service for managing Lingotek configuration translations.

Namespace

Drupal\lingotek

Code

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