You are here

public function LingotekEntity::setApi in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekEntity.php \LingotekEntity::setApi()
  2. 7.5 lib/Drupal/lingotek/LingotekEntity.php \LingotekEntity::setApi()

Injects reference to an API object.

Parameters

LingotekApi $api: An instantiated Lingotek API object.

File

lib/Drupal/lingotek/LingotekEntity.php, line 64
Defines LingotekEntity.

Class

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

Code

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