heartbeat.routing.yml 737 B

1234567891011121314151617
  1. # In order to to create pages it is necessary to define routes for them.
  2. # A route maps a URL path to a controller. It defines what function
  3. # or method will be called when a URL is accessed.
  4. # If the user accesses http://drupal8.dev//heartbeat/test/{arg}, the routing
  5. # system will look for a route with that path. In this case it will find a
  6. # match, and execute the _controller callback. In this case the callback is
  7. # defined as a classname
  8. # ("\Drupal\heartbeat\Controller\TestController")
  9. # and a method ("start").
  10. heartbeat.test_controller_start:
  11. path: '/heartbeat/test/{arg}'
  12. defaults:
  13. _controller: '\Drupal\heartbeat\Controller\TestController::start'
  14. _title: 'run'
  15. requirements:
  16. _permission: 'access content'