12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- # In order to to create pages it is necessary to define routes for them.
- # A route maps a URL path to a controller. It defines what function
- # or method will be called when a URL is accessed.
- # If the user accesses http://drupal8.dev//heartbeat/test/{arg}, the routing
- # system will look for a route with that path. In this case it will find a
- # match, and execute the _controller callback. In this case the callback is
- # defined as a classname
- # ("\Drupal\heartbeat\Controller\TestController")
- # and a method ("start").
- heartbeat.test_controller_start:
- path: '/heartbeat/test/{arg}'
- defaults:
- _controller: '\Drupal\heartbeat\Controller\TestController::start'
- _title: 'run'
- requirements:
- _permission: 'access content'
- heartbeat.stream_test_controller_stream:
- path: '/nodeactivity'
- defaults:
- _controller: '\Drupal\heartbeat\Controller\StreamTestController::stream'
- _title: 'stream'
- requirements:
- _permission: 'access content'
- heartbeat.stream_test_controller_friendstream:
- path: '/friendactivity'
- defaults:
- _controller: '\Drupal\heartbeat\Controller\StreamTestController::friendstream'
- _title: 'Friendship'
- requirements:
- _permission: 'access content'
- heartbeat.stream_test_controller_tweetstream:
- path: '/tweetactivity'
- defaults:
- _controller: '\Drupal\heartbeat\Controller\StreamTestController::tweetstream'
- _title: 'Tweetship'
- requirements:
- _permission: 'access content'
- heartbeat.stream_test_controller_superherostream:
- path: '/superheroactivity'
- defaults:
- _controller: '\Drupal\heartbeat\Controller\StreamTestController::superherostream'
- _title: 'Superhero Worship'
- requirements:
- _permission: 'access content'
|