Builds a locale batch to refresh configuration.
array $options: An array with options that can have the following elements:
array $langcodes: (optional) Array of language codes. Defaults to all translatable languages.
array $components: (optional) Array of component lists indexed by type. If not present or it is an empty array, it will update all components.
array The batch definition.
function locale_config_batch_update_components(array $options, $langcodes = array(), $components = array()) {
$langcodes = $langcodes ? $langcodes : array_keys(locale_translatable_language_list());
if ($langcodes && ($names = \Drupal\locale\Locale::config()
->getComponentNames($components))) {
return locale_config_batch_build($names, $langcodes, $options);
}
}