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