You are here

public function LingotekEntity::setApi in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.5 lib/Drupal/lingotek/LingotekEntity.php \LingotekEntity::setApi()
  2. 7.6 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 70
Defines LingotekEntity.

Class

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

Code

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