You are here

function search404_install in Search 404 8

Same name and namespace in other branches
  1. 5 search404.install \search404_install()
  2. 6 search404.install \search404_install()
  3. 7 search404.install \search404_install()
  4. 2.x search404.install \search404_install()

Implements hook_install().

File

./search404.install, line 11
Install, update and uninstall functions for the search404 module.

Code

function search404_install() {
  \Drupal::configFactory()
    ->getEditable('system.site')
    ->set('page.404', '/search404')
    ->save();
}