You are here

public function LingotekComment::setApi in Lingotek Translation 7.3

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

Injects reference to an API object.

Parameters

LingotekApi $api: An instantiated Lingotek API object.

File

lib/Drupal/lingotek/LingotekComment.php, line 54
Defines LingotekComment.

Class

LingotekComment
A class wrapper for Lingotek-specific behavior on Comments.

Code

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