class RouterInstallerTestHooks
Hook implementations for router_installer_test.
Hierarchy
- class \Drupal\router_installer_test\Hook\RouterInstallerTestHooks
Expanded class hierarchy of RouterInstallerTestHooks
File
-
core/
modules/ system/ tests/ modules/ router_installer_test/ src/ Hook/ RouterInstallerTestHooks.php, line 13
Namespace
Drupal\router_installer_test\HookView source
class RouterInstallerTestHooks {
/**
* Implements hook_modules_installed().
*/
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());
}
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
RouterInstallerTestHooks::modulesInstalled | public | function | Implements hook_modules_installed(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.