You are here

public function LingotekNode::setApi in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.2 lib/Drupal/lingotek/LingotekNode.php \LingotekNode::setApi()
  2. 7.4 lib/Drupal/lingotek/LingotekNode.php \LingotekNode::setApi()

Injects reference to an API object.

Parameters

LingotekApi $api: An instantiated Lingotek API object.

File

lib/Drupal/lingotek/LingotekNode.php, line 52
Defines LingotekNode.

Class

LingotekNode
A class wrapper for Lingotek-specific behavior on nodes.

Code

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