function LocaleHooks::modulePreuninstall

Same name and namespace in other branches
  1. 11.x core/modules/locale/src/Hook/LocaleHooks.php \Drupal\locale\Hook\LocaleHooks::modulePreuninstall()

Implements hook_module_preuninstall().

Attributes

#[Hook('module_preuninstall')]

File

core/modules/locale/src/Hook/LocaleHooks.php, line 152

Class

LocaleHooks
Hook implementations for locale.

Namespace

Drupal\locale\Hook

Code

public function modulePreuninstall($module) : void {
  $components['module'] = [
    $module,
  ];
  locale_system_remove($components);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.