function router_installer_test_modules_installed

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/router_installer_test/router_installer_test.module \router_installer_test_modules_installed()
  2. 10 core/modules/system/tests/modules/router_installer_test/router_installer_test.module \router_installer_test_modules_installed()

Implements hook_modules_installed().

1 string reference to 'router_installer_test_modules_installed'
InstallerRouterTest::testInstalled in core/tests/Drupal/FunctionalTests/Installer/InstallerRouterTest.php
Confirms that the installation succeeded.

File

core/modules/system/tests/modules/router_installer_test/router_installer_test.module, line 13

Code

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());
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.