router_test.module 359 Bytes
Newer Older
1 2 3 4 5
<?php

use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;

6
function router_test_route_info() {
7 8
  $collection = new RouteCollection();

9 10 11
  $route = new Route('router_test/test1', array(
    '_controller' => '\Drupal\router_test\TestControllers::test1'
  ));
12 13 14 15
  $collection->add('router_test_1', $route);

  return $collection;
}