function LocaleExtensionHooks::modulePreuninstall

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

Implements hook_module_preuninstall().

Attributes

#[Hook('module_preuninstall')]

File

core/modules/locale/src/Hook/LocaleExtensionHooks.php, line 70

Class

LocaleExtensionHooks
Extension hook implementations for locale.

Namespace

Drupal\locale\Hook

Code

public function modulePreuninstall(string $module) : void {
  $this->deleteTranslationHistory([
    $module,
  ]);
}

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