You are here

public function LingotekInterface::addTarget in Lingotek Translation 3.4.x

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

Requests a translation to the Lingotek service.

Parameters

string $doc_id: The document id to translate.

string $locale: The Lingotek locale to request.

\Drupal\lingotek\LingotekProfileInterface $profile: The profile being used.

Return value

bool TRUE if the document was successfully updated. FALSE if not.

Throws

\Drupal\lingotek\Exception\LingotekPaymentRequiredException

\Drupal\lingotek\Exception\LingotekDocumentArchivedException

\Drupal\lingotek\Exception\LingotekDocumentLockedException

\Drupal\lingotek\Exception\LingotekApiException

2 methods override LingotekInterface::addTarget()
Lingotek::addTarget in src/Lingotek.php
Requests a translation to the Lingotek service.
LingotekFake::addTarget in tests/modules/lingotek_test/src/LingotekFake.php
Requests a translation to the Lingotek service.

File

src/LingotekInterface.php, line 274

Class

LingotekInterface

Namespace

Drupal\lingotek

Code

public function addTarget($doc_id, $locale, LingotekProfileInterface $profile = NULL);