You are here

function dynamic_banner_uninstall in Dynamic Banner 8

Same name and namespace in other branches
  1. 6 dynamic_banner.install \dynamic_banner_uninstall()
  2. 7.2 dynamic_banner.install \dynamic_banner_uninstall()
  3. 7 dynamic_banner.install \dynamic_banner_uninstall()
  4. 8.x dynamic_banner.install \dynamic_banner_uninstall()

Implements hook_uninstall().

File

./dynamic_banner.install, line 100
The install file of dynamic_banner

Code

function dynamic_banner_uninstall() {

  // default settings remove
  Drupal::configFactory()
    ->getEditable('dynamic_banner.settings')
    ->delete();
  \Drupal::messenger()
    ->addWarning(t('Dynamic Banner Module uninstalled successfully.'));
}