function RouterInstallerTestHooks::modulesInstalled
Implements hook_modules_installed().
File
-
core/
modules/ system/ tests/ modules/ router_installer_test/ src/ Hook/ RouterInstallerTestHooks.php, line 18
Class
- RouterInstallerTestHooks
- Hook implementations for router_installer_test.
Namespace
Drupal\router_installer_test\HookCode
public function modulesInstalled($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('router_installer_test_modules_installed', Url::fromRoute('router_installer_test.1')->toString());
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.