Commit da859f5d authored by Adam G-H's avatar Adam G-H Committed by Ted Bowman
Browse files

Issue #3267632 by phenaproxima: Ensure new, changed or deleted routes are in...

Issue #3267632 by phenaproxima: Ensure new, changed or deleted routes are in the correct state after an update
parent 9ae97d18
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -5,6 +5,18 @@
 * Contains global functions for testing updates to a .module file.
 */

/**
 * Page controller that says hello.
 *
 * @return array
 *   A renderable array of the page content.
 */
function updated_module_hello(): array {
  return [
    '#markup' => 'Hello!',
  ];
}

/**
 * A test function to test if global functions are reloaded during an update.
 *
+12 −0
Original line number Diff line number Diff line
updated_module.changed:
  path: '/updated-module/changed/pre'
  defaults:
    _controller: 'updated_module_hello'
  requirements:
    _access: 'TRUE'
updated_module.deleted:
  path: '/updated-module/deleted'
  defaults:
    _controller: 'updated_module_hello'
  requirements:
    _access: 'TRUE'
+12 −0
Original line number Diff line number Diff line
@@ -5,6 +5,18 @@
 * Contains global functions for testing updates to a .module file.
 */

/**
 * Page controller that says hello.
 *
 * @return array
 *   A renderable array of the page content.
 */
function updated_module_hello(): array {
  return [
    '#markup' => 'Hello!',
  ];
}

/**
 * A test function to test if global functions are reloaded during an update.
 *
+12 −0
Original line number Diff line number Diff line
updated_module.changed:
  path: '/updated-module/changed/post'
  defaults:
    _controller: 'updated_module_hello'
  requirements:
    _access: 'TRUE'
updated_module.added:
  path: '/updated-module/added'
  defaults:
    _controller: 'updated_module_hello'
  requirements:
    _access: 'TRUE'
+1 −0
Original line number Diff line number Diff line
@@ -4,5 +4,6 @@ services:
    arguments:
      - '@package_manager.path_locator'
      - '@state'
      - '@router.no_access_checks'
    tags:
      - { name: event_subscriber }
Loading