public function LingotekConfigTranslationService::getConfigLastUploaded in Lingotek Translation 3.4.x
Same name and namespace in other branches
- 4.0.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigLastUploaded()
- 3.5.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigLastUploaded()
- 3.6.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigLastUploaded()
- 3.7.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigLastUploaded()
- 3.8.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigLastUploaded()
Gets the timestamp for the last time the config was uploaded.
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::getConfigLastUploaded
File
- src/
LingotekConfigTranslationService.php, line 1781
Class
- LingotekConfigTranslationService
- Service for managing Lingotek configuration translations.
Namespace
Drupal\lingotekCode
public function getConfigLastUploaded(ConfigNamesMapper $mapper) {
$config_names = $mapper
->getConfigNames();
foreach ($config_names as $config_name) {
$metadata = LingotekConfigMetadata::loadByConfigName($config_name);
return $metadata
->getLastUploaded();
}
return NULL;
}