Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / system / tests / modules / router_test_directory / router_test.install
diff --git a/web/core/modules/system/tests/modules/router_test_directory/router_test.install b/web/core/modules/system/tests/modules/router_test_directory/router_test.install
new file mode 100644 (file)
index 0000000..7c718fa
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+
+/**
+ * @file
+ * Install, update and uninstall functions for the router_test module.
+ */
+
+use Drupal\Core\Url;
+
+/**
+ * Implements hook_install().
+ */
+function router_test_install() {
+  // Ensure a URL can be generated for routes provided by the module during
+  // installation.
+  \Drupal::state()->set(__FUNCTION__, Url::fromRoute('router_test.1')->toString());
+}