Same filename and directory in other branches
  1. 8.9.x core/modules/system/tests/modules/router_test_directory/router_test.install
  2. 9 core/modules/system/tests/modules/router_test_directory/router_test.install

Install, update and uninstall functions for the router_test module.

File

core/modules/system/tests/modules/router_test_directory/router_test.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the router_test module.
 */
use Drupal\Core\Url;

/**
 * Implements hook_install().
 */
function router_test_install() {

  // Ensure a URL can be generated for routes provided by the module during
  // installation.
  \Drupal::state()
    ->set(__FUNCTION__, Url::fromRoute('router_test.1')
    ->toString());
}

Functions

Namesort descending Description
router_test_install Implements hook_install().