locale_config_batch_update_components(array $options, array $langcodes = array(), array $components = array())
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, array $langcodes = array(), array $components = array()) { $langcodes = $langcodes ? $langcodes : array_keys(\Drupal::languageManager()->getLanguages()); if ($langcodes && $names = Locale::config()->getComponentNames($components)) { return locale_config_batch_build($names, $langcodes, $options); } }
© 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_update_components/8.1.x