function LocaleFetch::batchFinished
Same name and namespace in other branches
- 11.x core/modules/locale/src/LocaleFetch.php \Drupal\locale\LocaleFetch::batchFinished()
Implements callback_batch_finished().
Set result message.
Parameters
bool $success: TRUE if batch successfully completed.
array $results: Batch results.
File
-
core/
modules/ locale/ src/ LocaleFetch.php, line 260
Class
- LocaleFetch
- Provides the locale fetch services.
Namespace
Drupal\localeCode
public function batchFinished(bool $success, array $results) : void {
if ($success) {
$this->state
->set('locale.translation_last_checked', $this->time
->getRequestTime());
}
$this->localeImportBatch
->batchFinished($success, $results);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.