You are here

public function LingotekDocument::setApi in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekDocument.php \LingotekDocument::setApi()
  2. 7.2 lib/Drupal/lingotek/LingotekDocument.php \LingotekDocument::setApi()
  3. 7.3 lib/Drupal/lingotek/LingotekDocument.php \LingotekDocument::setApi()
  4. 7.4 lib/Drupal/lingotek/LingotekDocument.php \LingotekDocument::setApi()
  5. 7.5 lib/Drupal/lingotek/LingotekDocument.php \LingotekDocument::setApi()

Injects reference to an API object.

Parameters

LingotekApi $api: An instantiated Lingotek API object.

File

lib/Drupal/lingotek/LingotekDocument.php, line 173
Defines LingotekDocument.

Class

LingotekDocument
A class representing a Lingotek Document

Code

public function setApi(LingotekApi $api) {
  $this->api = $api;
}