You are here

function locale_themes_installed in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/locale/locale.module \locale_themes_installed()
  2. 10 core/modules/locale/locale.module \locale_themes_installed()

Implements hook_themes_installed().

File

core/modules/locale/locale.module, line 337
Enables the translation of the user interface to languages other than English.

Code

function locale_themes_installed($themes) {
  locale_system_set_config_langcodes();
  $components['theme'] = $themes;
  locale_system_update($components);
}