You are here

protected function LingotekComment::createLingotekDocument in Lingotek Translation 7.4

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

Creates a Lingotek Document for this comment.

Return value

bool TRUE if the document create operation was successful, FALSE on error.

1 call to LingotekComment::createLingotekDocument()
LingotekComment::contentUpdated in lib/Drupal/lingotek/LingotekComment.php
Event handler for updates to the comment's data.

File

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

Class

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

Code

protected function createLingotekDocument() {
  return $this->api
    ->addContentDocumentWithTargets($this) ? TRUE : FALSE;
}