public function LingotekInterface::addTarget in Lingotek Translation 3.4.x
Same name and namespace in other branches
- 8 src/LingotekInterface.php \Drupal\lingotek\LingotekInterface::addTarget()
- 8.2 src/LingotekInterface.php \Drupal\lingotek\LingotekInterface::addTarget()
- 4.0.x src/LingotekInterface.php \Drupal\lingotek\LingotekInterface::addTarget()
- 3.0.x src/LingotekInterface.php \Drupal\lingotek\LingotekInterface::addTarget()
- 3.1.x src/LingotekInterface.php \Drupal\lingotek\LingotekInterface::addTarget()
- 3.2.x src/LingotekInterface.php \Drupal\lingotek\LingotekInterface::addTarget()
- 3.3.x src/LingotekInterface.php \Drupal\lingotek\LingotekInterface::addTarget()
- 3.5.x src/LingotekInterface.php \Drupal\lingotek\LingotekInterface::addTarget()
- 3.6.x src/LingotekInterface.php \Drupal\lingotek\LingotekInterface::addTarget()
- 3.7.x src/LingotekInterface.php \Drupal\lingotek\LingotekInterface::addTarget()
- 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
Namespace
Drupal\lingotekCode
public function addTarget($doc_id, $locale, LingotekProfileInterface $profile = NULL);