You are here

function search_api_db_defaults_install in Search API 8

Implements hook_install().

File

modules/search_api_db/search_api_db_defaults/search_api_db_defaults.install, line 40
Install, update and uninstall functions for the DB Search Defaults module.

Code

function search_api_db_defaults_install() {

  // Clear the display plugin cache after installation so the plugin for the new
  // view (display) gets found.
  \Drupal::service('plugin.manager.search_api.display')
    ->clearCachedDefinitions();
}