7c718fa131bfb1690df55e299abb880cfd2c4932
[yaffs-website] / web / core / modules / system / tests / modules / router_test_directory / router_test.install
1 <?php
2
3 /**
4  * @file
5  * Install, update and uninstall functions for the router_test module.
6  */
7
8 use Drupal\Core\Url;
9
10 /**
11  * Implements hook_install().
12  */
13 function router_test_install() {
14   // Ensure a URL can be generated for routes provided by the module during
15   // installation.
16   \Drupal::state()->set(__FUNCTION__, Url::fromRoute('router_test.1')->toString());
17 }