You are here

function navigation404_install in 404 Navigation 8

Implements hook_install().

If site_404 is not set, all menu-related items disappear on 404.

File

./navigation404.install, line 11
install file.

Code

function navigation404_install() {
  if (!Drupal::config('system.site')
    ->get('page.404')) {
    Drupal::config('system.site')
      ->set('page.404', NAVIGATION404_PAGE)
      ->save();
  }
}