You are here

public function LingotekConfigTranslationService::getConfigLastUpdated in Lingotek Translation 3.6.x

Same name and namespace in other branches
  1. 4.0.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigLastUpdated()
  2. 3.4.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigLastUpdated()
  3. 3.5.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigLastUpdated()
  4. 3.7.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigLastUpdated()
  5. 3.8.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigLastUpdated()

Gets the timestamp for the last time the config was updated.

Parameters

\Drupal\config_translation\ConfigNamesMapper $mapper: The mapper for which we want to get the timestamp.

Return value

int The timestamp or NULL.

Overrides LingotekConfigTranslationServiceInterface::getConfigLastUpdated

File

src/LingotekConfigTranslationService.php, line 1786

Class

LingotekConfigTranslationService
Service for managing Lingotek configuration translations.

Namespace

Drupal\lingotek

Code

public function getConfigLastUpdated(ConfigNamesMapper $mapper) {
  $config_names = $mapper
    ->getConfigNames();
  foreach ($config_names as $config_name) {
    $metadata = LingotekConfigMetadata::loadByConfigName($config_name);
    return $metadata
      ->getLastUpdated();
  }
  return NULL;
}