public function LingotekConfigTranslationService::setConfigLastUpdated in Lingotek Translation 3.4.x
Same name and namespace in other branches
- 4.0.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::setConfigLastUpdated()
- 3.5.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::setConfigLastUpdated()
- 3.6.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::setConfigLastUpdated()
- 3.7.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::setConfigLastUpdated()
- 3.8.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::setConfigLastUpdated()
Sets the timestamp for the last time the config was updated.
Parameters
\Drupal\config_translation\ConfigNamesMapper $mapper: The mapper for which we want to save the timestamp.
int $timestamp: The timestamp being saved.
Overrides LingotekConfigTranslationServiceInterface::setConfigLastUpdated
1 call to LingotekConfigTranslationService::setConfigLastUpdated()
- LingotekConfigTranslationService::updateConfig in src/
LingotekConfigTranslationService.php - Resends a document to the translation service.
File
- src/
LingotekConfigTranslationService.php, line 1758
Class
- LingotekConfigTranslationService
- Service for managing Lingotek configuration translations.
Namespace
Drupal\lingotekCode
public function setConfigLastUpdated(ConfigNamesMapper $mapper, int $timestamp) {
foreach ($mapper
->getConfigNames() as $config_name) {
$metadata = LingotekConfigMetadata::loadByConfigName($config_name);
$metadata
->setLastUpdated($timestamp)
->save();
}
return $mapper;
}