router_test.install
Same filename and directory in other branches
- 11.x core/modules/system/tests/modules/router_test_directory/router_test.install
- 10 core/modules/system/tests/modules/router_test_directory/router_test.install
- 9 core/modules/system/tests/modules/router_test_directory/router_test.install
- 8.9.x core/modules/system/tests/modules/router_test_directory/router_test.install
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.
*/
declare (strict_types=1);
use Drupal\Core\Url;
/**
* Implements hook_install().
*/
function router_test_install() : void {
// 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
| Title | Deprecated | Summary |
|---|---|---|
| router_test_install | Implements hook_install(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.