heartbeat.routing.yml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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'
  17. #heartbeat.stream_test_controller_stream:
  18. # path: '/nodeactivity'
  19. # defaults:
  20. # _controller: '\Drupal\heartbeat\Controller\StreamTestController::stream'
  21. # _title: 'stream'
  22. # requirements:
  23. # _permission: 'access content'
  24. #
  25. #heartbeat.stream_test_controller_friendstream:
  26. # path: '/friendactivity'
  27. # defaults:
  28. # _controller: '\Drupal\heartbeat\Controller\StreamTestController::friendstream'
  29. # _title: 'Friendship'
  30. # requirements:
  31. # _permission: 'access content'
  32. #
  33. #heartbeat.stream_test_controller_tweetstream:
  34. # path: '/tweetactivity'
  35. # defaults:
  36. # _controller: '\Drupal\heartbeat\Controller\StreamTestController::tweetstream'
  37. # _title: 'Tweetship'
  38. # requirements:
  39. # _permission: 'access content'
  40. #
  41. #heartbeat.stream_test_controller_superherostream:
  42. # path: '/superheroactivity'
  43. # defaults:
  44. # _controller: '\Drupal\heartbeat\Controller\StreamTestController::superherostream'
  45. # _title: 'Superhero Worship'
  46. # requirements:
  47. # _permission: 'access content'
  48. route_callbacks:
  49. - '\Drupal\heartbeat\Routing\HeartbeatRouteController::getRoutes'
  50. #heartbeat.heartbeat_stream.routes:
  51. # path: '/heartbeat/hello'
  52. # defaults:
  53. # _controller: '\Drupal\heartbeat\Controller\HeartbeatRouteController::getRoutes'
  54. # _title: 'getRoutes'
  55. # requirements:
  56. # _permission: 'access content'
  57. heartbeat.heartbeat_feed_form:
  58. path: '/heartbeat/form/heartbeat_feed'
  59. defaults:
  60. _form: '\Drupal\heartbeat\Form\HeartbeatFeedForm'
  61. _title: 'HeartbeatFeedForm'
  62. requirements:
  63. _access: 'TRUE'
  64. heartbeat.render_feed:
  65. path: '/heartbeat/render_feed/{arg}'
  66. defaults:
  67. _controller: '\Drupal\heartbeat\Controller\HeartbeatController::renderFeed'
  68. _title: 'Render Feed'
  69. requirements:
  70. _permission: 'access content'