router_installer_test.module

Same filename in other branches
  1. 10 core/modules/system/tests/modules/router_installer_test/router_installer_test.module
  2. 11.x core/modules/system/tests/modules/router_installer_test/router_installer_test.module

Install, update and uninstall functions for the router_installer_test module.

File

core/modules/system/tests/modules/router_installer_test/router_installer_test.module

View 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

Title Deprecated Summary
router_installer_test_modules_installed Implements hook_modules_installed().

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