You are here

public function LingotekConfigTranslationService::deleteConfigDocument in Lingotek Translation 8

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

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

Parameters

string $mapper_id: The entity being uploaded.

Overrides LingotekConfigTranslationServiceInterface::deleteConfigDocument

1 call to LingotekConfigTranslationService::deleteConfigDocument()
LingotekConfigTranslationService::deleteConfigMetadata in src/LingotekConfigTranslationService.php
Deletes metadata.

File

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

Class

LingotekConfigTranslationService
Service for managing Lingotek configuration translations.

Namespace

Drupal\lingotek

Code

public function deleteConfigDocument($mapper_id) {
  $mapper = $this->mappers[$mapper_id];
  return $this->lingotek
    ->deleteDocument($this
    ->getConfigDocumentId($mapper));
}