You are here

protected function LingotekConfigChunk::createLingotekDocument in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.4 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::createLingotekDocument()
  2. 7.5 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::createLingotekDocument()

Creates a Lingotek Document for this config chunk.

Return value

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

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

File

lib/Drupal/lingotek/LingotekConfigChunk.php, line 450
Defines LingotekConfigChunk.

Class

LingotekConfigChunk
A class wrapper for Lingotek-specific behavior on ConfigChunks.

Code

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