You are here

public static function LingotekContentMetadata::getAllLocalDocumentIds in Lingotek Translation 3.3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/LingotekContentMetadata.php \Drupal\lingotek\Entity\LingotekContentMetadata::getAllLocalDocumentIds()
  2. 4.0.x src/Entity/LingotekContentMetadata.php \Drupal\lingotek\Entity\LingotekContentMetadata::getAllLocalDocumentIds()
  3. 3.0.x src/Entity/LingotekContentMetadata.php \Drupal\lingotek\Entity\LingotekContentMetadata::getAllLocalDocumentIds()
  4. 3.1.x src/Entity/LingotekContentMetadata.php \Drupal\lingotek\Entity\LingotekContentMetadata::getAllLocalDocumentIds()
  5. 3.2.x src/Entity/LingotekContentMetadata.php \Drupal\lingotek\Entity\LingotekContentMetadata::getAllLocalDocumentIds()
  6. 3.4.x src/Entity/LingotekContentMetadata.php \Drupal\lingotek\Entity\LingotekContentMetadata::getAllLocalDocumentIds()
  7. 3.5.x src/Entity/LingotekContentMetadata.php \Drupal\lingotek\Entity\LingotekContentMetadata::getAllLocalDocumentIds()
  8. 3.6.x src/Entity/LingotekContentMetadata.php \Drupal\lingotek\Entity\LingotekContentMetadata::getAllLocalDocumentIds()
  9. 3.7.x src/Entity/LingotekContentMetadata.php \Drupal\lingotek\Entity\LingotekContentMetadata::getAllLocalDocumentIds()
  10. 3.8.x src/Entity/LingotekContentMetadata.php \Drupal\lingotek\Entity\LingotekContentMetadata::getAllLocalDocumentIds()

Loads all Lingotek document IDs stored in the system.

Return value

string[] Indexed array of all the document ids.

1 call to LingotekContentMetadata::getAllLocalDocumentIds()
LingotekContentTranslationService::getAllLocalDocumentIds in src/LingotekContentTranslationService.php
Gets all local document ids.

File

src/Entity/LingotekContentMetadata.php, line 142

Class

LingotekContentMetadata
Defines the Lingotek content metadata entity.

Namespace

Drupal\lingotek\Entity

Code

public static function getAllLocalDocumentIds() {
  return \Drupal::database()
    ->select('lingotek_metadata', 'lcm')
    ->fields('lcm', [
    'document_id',
  ])
    ->execute()
    ->fetchCol(0);
}