You are here

public function LingotekContentTranslationServiceInterface::setDocumentId in Lingotek Translation 8

Same name and namespace in other branches
  1. 8.2 src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setDocumentId()
  2. 4.0.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setDocumentId()
  3. 3.0.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setDocumentId()
  4. 3.1.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setDocumentId()
  5. 3.2.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setDocumentId()
  6. 3.3.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setDocumentId()
  7. 3.4.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setDocumentId()
  8. 3.5.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setDocumentId()
  9. 3.6.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setDocumentId()
  10. 3.7.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setDocumentId()
  11. 3.8.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setDocumentId()

Sets the Lingotek document id for a given entity.

Parameters

\Drupal\Core\Entity\ContentEntityInterface &$entity: The entity which we want to set a document id.

$doc_id: The document id in the Lingotek platform.

Return value

ContentEntityInterface The entity.

1 method overrides LingotekContentTranslationServiceInterface::setDocumentId()
LingotekContentTranslationService::setDocumentId in src/LingotekContentTranslationService.php
Sets the Lingotek document id for a given entity.

File

src/LingotekContentTranslationServiceInterface.php, line 144
Contains \Drupal\lingotek\LingotekContentTranslationServiceInterface.

Class

LingotekContentTranslationServiceInterface
Service for managing Lingotek content translations.

Namespace

Drupal\lingotek

Code

public function setDocumentId(ContentEntityInterface &$entity, $doc_id);