public function LingotekComment::setApi in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.2 lib/Drupal/lingotek/LingotekComment.php \LingotekComment::setApi()
- 7.3 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;
}