You are here

function acquia_search_install in Acquia Connector 8.2

Same name and namespace in other branches
  1. 8 acquia_search/acquia_search.install \acquia_search_install()
  2. 7 acquia_search/acquia_search.install \acquia_search_install()
  3. 7.2 acquia_search/acquia_search.install \acquia_search_install()

Throws

\Exception

File

acquia_search/acquia_search.install, line 14
Install, update, and uninstall functions for the Acquia Connector module.

Code

function acquia_search_install() {

  /** @var \Drupal\Core\Extension\ModuleInstallerInterface $module_installer */
  $module_installer = \Drupal::service('module_installer');
  $module_installer
    ->uninstall([
    'acquia_search',
  ]);
  $messenger = \Drupal::messenger();
  $messenger
    ->addWarning(t('Acquia Search Legacy must not be installed again! Please use Acquia Search Solr instead.'));
}