router_installer_test.module in Drupal 9
Install, update and uninstall functions for the router_installer_test module.
File
core/modules/system/tests/modules/router_installer_test/router_installer_test.moduleView source
<?php
/**
* @file
* Install, update and uninstall functions for the router_installer_test module.
*/
use Drupal\Core\Url;
/**
* Implements hook_modules_installed().
*/
function router_installer_test_modules_installed($modules) {
if (in_array('router_installer_test', $modules, TRUE)) {
// Ensure a URL can be generated for routes provided by the module during
// installation.
\Drupal::state()
->set(__FUNCTION__, Url::fromRoute('router_installer_test.1')
->toString());
}
}
Functions
Name | Description |
---|---|
router_installer_test_modules_installed | Implements hook_modules_installed(). |