You are here

public static function LingotekSync::getUploadableReport in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.3 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getUploadableReport()
  2. 7.4 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getUploadableReport()
  3. 7.5 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getUploadableReport()
  4. 7.6 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getUploadableReport()
1 call to LingotekSync::getUploadableReport()
LingotekSync::getReport in lib/Drupal/lingotek/LingotekSync.php

File

lib/Drupal/lingotek/LingotekSync.php, line 795
LingotekSync

Class

LingotekSync
A utility class for Lingotek Syncing.

Code

public static function getUploadableReport() {

  // Handle configuration chunks
  $report = array();
  if (variable_get('lingotek_translate_config')) {
    $config_chunks_to_update = self::getDirtyConfigChunks();
    $num_updates = count($config_chunks_to_update);
    $report = array(
      'upload_config' => array_keys($config_chunks_to_update),
      'upload_config_count' => $num_updates,
    );
  }
  return $report;
}