You are here

function opigno_search_update_8001 in Opigno Search 8

Implements hook_update_N().

Uninstall core module 'Search'.

File

./opigno_search.install, line 28
Module install/update functionality.

Code

function opigno_search_update_8001() {
  $moduleHandler = \Drupal::service('module_handler');
  if ($moduleHandler
    ->moduleExists('search')) {
    \Drupal::service('module_installer')
      ->uninstall([
      'search',
    ]);
  }
}