locale_configurable_language_update(ConfigurableLanguageInterface $language)
Implements hook_ENTITY_TYPE_update() for 'configurable_language'.
function locale_configurable_language_update(ConfigurableLanguageInterface $language) { // @todo move these two cache clears out. See // https://www.drupal.org/node/1293252. // Changing the language settings impacts the interface: clear render cache. \Drupal::cache('render')->deleteAll(); // Force JavaScript translation file re-creation for the modified language. _locale_invalidate_js($language->id()); }
© 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.module/function/locale_configurable_language_update/8.1.x