12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- # 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'
- route_callbacks:
- - '\Drupal\heartbeat\Routing\HeartbeatRouteController::getRoutes'
- #heartbeat.heartbeat_stream.routes:
- # path: '/heartbeat/hello'
- # defaults:
- # _controller: '\Drupal\heartbeat\Controller\HeartbeatRouteController::getRoutes'
- # _title: 'getRoutes'
- # requirements:
- # _permission: 'access content'
- heartbeat.heartbeat_feed_form:
- path: '/heartbeat/form/heartbeat_feed'
- defaults:
- _form: '\Drupal\heartbeat\Form\HeartbeatFeedForm'
- _title: 'HeartbeatFeedForm'
- requirements:
- _access: 'TRUE'
- heartbeat.render_feed:
- path: '/heartbeat/render_feed/{arg}'
- defaults:
- _controller: '\Drupal\heartbeat\Controller\HeartbeatController::renderFeed'
- _title: 'Render Feed'
- requirements:
- _permission: 'access content'
|