You are here

public function LingotekContentTranslationService::getAllLocalDocumentIds in Lingotek Translation 8

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

Gets all local document ids.

Return value

string[] Gets all local document ids.

Overrides LingotekContentTranslationServiceInterface::getAllLocalDocumentIds

File

src/LingotekContentTranslationService.php, line 782
Contains \Drupal\lingotek\LingotekContentTranslationService.

Class

LingotekContentTranslationService
Service for managing Lingotek content translations.

Namespace

Drupal\lingotek

Code

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