heartbeat.routing.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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. heartbeat.stream_test_controller_friendstream:
  25. path: '/friendactivity'
  26. defaults:
  27. _controller: '\Drupal\heartbeat\Controller\StreamTestController::friendstream'
  28. _title: 'Friendship'
  29. requirements:
  30. _permission: 'access content'