public function LingotekConfigTranslationService::getConfigLastUpdated in Lingotek Translation 3.4.x
Same name and namespace in other branches
- 4.0.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigLastUpdated()
- 3.5.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigLastUpdated()
- 3.6.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigLastUpdated()
- 3.7.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigLastUpdated()
- 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 1769
Class
- LingotekConfigTranslationService
- Service for managing Lingotek configuration translations.
Namespace
Drupal\lingotekCode
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;
}