function search_update_11401

Same name and namespace in other branches
  1. main core/modules/search/search.install \search_update_11401()

Install Help Search module if the Search and Help modules are installed.

File

core/modules/search/search.install, line 136

Code

function search_update_11401() : void {
  $module_handler = \Drupal::moduleHandler();
  // Search help may already have been installed by sites on 11.4.0 or 11.4.1.
  if ($module_handler->moduleExists('search_help')) {
    return;
  }
  if ($module_handler->moduleExists('help')) {
    \Drupal::service('module_installer')->install([
      'search_help',
    ]);
  }
}

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