diff --git a/core/modules/system/tests/modules/url_alter_test/lib/Drupal/url_alter_test/Controller/URLAlterTestController.php b/core/modules/system/tests/modules/url_alter_test/lib/Drupal/url_alter_test/Controller/URLAlterTestController.php index 0111f28..e8cc57d 100644 --- a/core/modules/system/tests/modules/url_alter_test/lib/Drupal/url_alter_test/Controller/URLAlterTestController.php +++ b/core/modules/system/tests/modules/url_alter_test/lib/Drupal/url_alter_test/Controller/URLAlterTestController.php @@ -6,17 +6,19 @@ namespace Drupal\url_alter_test\Controller; +use Symfony\Component\HttpFoundation\Response; + /** * Controller routines for url_alter_test routes. */ class URLAlterTestController { + /** * Prints Current and Request Path. * */ public function foo() { - print 'current_path=' . current_path() . ' request_path=' . request_path(); - exit; + return new Response('current_path=' . current_path() . ' request_path=' . request_path()); } } diff --git a/core/modules/system/tests/modules/url_alter_test/url_alter_test.module b/core/modules/system/tests/modules/url_alter_test/url_alter_test.module index 5582714..b3d9bbc 100644 --- a/core/modules/system/tests/modules/url_alter_test/url_alter_test.module +++ b/core/modules/system/tests/modules/url_alter_test/url_alter_test.module @@ -1,18 +1 @@ 'Foo', - 'route_name' => 'url_alter_test_foo', - 'type' => MENU_CALLBACK, - ); - return $items; -}