function locale_config_batch_refresh_name
locale_config_batch_refresh_name(array $names, array $langcodes, &$context)
Implements callback_batch_operation().
Performs configuration translation refresh.
Parameters
array $names: An array of names of configuration objects to update.
array $langcodes: (optional) Array of language codes to update. Defaults to all languages.
array|\ArrayAccess $context.: Contains a list of files imported.
See also
File
- core/modules/locale/locale.bulk.inc, line 605
- Mass import-export and batch import functionality for Gettext .po files.
Code
function locale_config_batch_refresh_name(array $names, array $langcodes, &$context) { if (!isset($context['result']['stats']['config'])) { $context['result']['stats']['config'] = 0; } $context['result']['stats']['config'] += Locale::config()->updateConfigTranslations($names, $langcodes); foreach ($names as $name) { $context['result']['names'][] = $name; } $context['result']['langcodes'] = $langcodes; $context['finished'] = 1; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!locale!locale.bulk.inc/function/locale_config_batch_refresh_name/8.1.x