You are here

heartbeat.routing.yml in Heartbeat 8

File

heartbeat.routing.yml
View source
  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.heartbeat_save:
  18. path: '/heartbeat/heartbeats/save'
  19. defaults:
  20. _controller: '\Drupal\heartbeat\Controller\TestController::saveHeartbeats'
  21. _title: 'run'
  22. requirements:
  23. _permission: 'access content'
  24. heartbeat.heartbeat_load:
  25. path: '/heartbeat/heartbeats/load'
  26. defaults:
  27. _controller: '\Drupal\heartbeat\Controller\TestController::getHeartbeats'
  28. _title: 'run'
  29. requirements:
  30. _permission: 'access content'
  31. heartbeat.heartbeat_delete:
  32. path: '/heartbeat/heartbeats/delete'
  33. defaults:
  34. _controller: '\Drupal\heartbeat\Controller\TestController::deleteHeartbeats'
  35. _title: 'run'
  36. requirements:
  37. _permission: 'access content'
  38. #heartbeat.stream_test_controller_stream:
  39. # path: '/nodeactivity'
  40. # defaults:
  41. # _controller: '\Drupal\heartbeat\Controller\StreamTestController::stream'
  42. # _title: 'stream'
  43. # requirements:
  44. # _permission: 'access content'
  45. #
  46. #heartbeat.stream_test_controller_friendstream:
  47. # path: '/friendactivity'
  48. # defaults:
  49. # _controller: '\Drupal\heartbeat\Controller\StreamTestController::friendstream'
  50. # _title: 'Friendship'
  51. # requirements:
  52. # _permission: 'access content'
  53. #
  54. #heartbeat.stream_test_controller_tweetstream:
  55. # path: '/tweetactivity'
  56. # defaults:
  57. # _controller: '\Drupal\heartbeat\Controller\StreamTestController::tweetstream'
  58. # _title: 'Tweetship'
  59. # requirements:
  60. # _permission: 'access content'
  61. #
  62. #heartbeat.stream_test_controller_superherostream:
  63. # path: '/superheroactivity'
  64. # defaults:
  65. # _controller: '\Drupal\heartbeat\Controller\StreamTestController::superherostream'
  66. # _title: 'Superhero Worship'
  67. # requirements:
  68. # _permission: 'access content'
  69. route_callbacks:
  70. - '\Drupal\heartbeat\Routing\HeartbeatRouteController::getRoutes'
  71. #heartbeat.heartbeat_stream.routes:
  72. # path: '/heartbeat/hello'
  73. # defaults:
  74. # _controller: '\Drupal\heartbeat\Controller\HeartbeatRouteController::getRoutes'
  75. # _title: 'getRoutes'
  76. # requirements:
  77. # _permission: 'access content'
  78. heartbeat.heartbeat_feed_form:
  79. path: '/heartbeat/form/heartbeat_feed'
  80. defaults:
  81. _form: '\Drupal\heartbeat\Form\HeartbeatFeedForm'
  82. _title: 'HeartbeatFeedForm'
  83. requirements:
  84. _access: 'TRUE'
  85. heartbeat.render_feed:
  86. path: '/heartbeat/render_feed/{arg}'
  87. defaults:
  88. _controller: '\Drupal\heartbeat\Controller\HeartbeatController::renderFeed'
  89. _title: 'Render Feed'
  90. requirements:
  91. _permission: 'access content'
  92. #This should probably be associated with the word more or add
  93. heartbeat.update_feed:
  94. path: '/heartbeat/update_feed/{hid}'
  95. defaults:
  96. _controller: '\Drupal\heartbeat\Controller\HeartbeatController::updateFeed'
  97. _title: 'Update Feed'
  98. requirements:
  99. _permission: 'access content'
  100. heartbeat.heartbeat_update_feed_form:
  101. path: '/heartbeat/form/heartbeat_update_feed'
  102. defaults:
  103. _form: '\Drupal\heartbeat\Form\HeartbeatUpdateFeedForm'
  104. _title: 'HeartbeatUpdateFeedForm'
  105. requirements:
  106. _access: 'TRUE'
  107. heartbeat.heartbeat_filter_feed:
  108. path: '/heartbeat/filter-feed/{tid}'
  109. defaults:
  110. _controller: '\Drupal\heartbeat\Controller\HeartbeatController::filterFeed'
  111. _title: 'Heartbeat Filter Feed'
  112. requirements:
  113. _access: 'TRUE'
  114. heartbeat.heartbeat_user_filter_feed:
  115. path: '/heartbeat/filter-feed/username/{tid}'
  116. defaults:
  117. _controller: '\Drupal\heartbeat\Controller\HeartbeatController::userFilterFeed'
  118. _title: 'Heartbeat User Filter Feed'
  119. requirements:
  120. _access: 'TRUE'
  121. heartbeat.heartbeat_comment_update:
  122. path: '/heartbeat/commentupdate/{entity_id}'
  123. defaults:
  124. _controller: '\Drupal\heartbeat\Controller\HeartbeatController::commentConfigUpdate'
  125. _title: 'Heartbeat Comment Config Update'
  126. requirements:
  127. _access: 'TRUE'
  128. #heartbeat.heartbeat_sub_comment_update:
  129. # path: '/heartbeat/subcommentupdate/{cid}'
  130. # defaults:
  131. # _controller: '\Drupal\heartbeat\Controller\HeartbeatController::subCommentConfigUpdate'
  132. # _title: 'Heartbeat Sub Comment Config Update'
  133. # requirements:
  134. # _access: 'TRUE'
  135. heartbeat.sub_comment:
  136. path: '/heartbeat/subcomment/{cid}'
  137. defaults:
  138. _controller: '\Drupal\heartbeat\Controller\HeartbeatController::subComment'
  139. _title: 'Sub Comment Block'
  140. requirements:
  141. _permission: 'access content'
  142. heartbeat.sub_comment_request:
  143. path: '/heartbeat/subcommentrequest/{cid}'
  144. defaults:
  145. _controller: '\Drupal\heartbeat\Controller\HeartbeatController::subCommentRequest'
  146. _title: 'Sub Comment Block'
  147. requirements:
  148. _permission: 'access content'
  149. heartbeat.user_edit:
  150. path: '/user/'
  151. defaults:
  152. _title: 'User Edit'
  153. requirements:
  154. _permission: 'access content'
  155. # In order to to create pages it is necessary to define routes for them.
  156. # A route maps a URL path to a controller. It defines what function
  157. # or method will be called when a URL is accessed.
  158. heartbeat.flag_controller:
  159. path: '/heartbeat/userflaggings'
  160. defaults:
  161. _controller: '\Drupal\heartbeat\Controller\FlagController::getUserFlaggings'
  162. _title: 'getUserFlaggings'
  163. methods: [POST]
  164. requirements:
  165. _permission: 'access content'
  166. heartbeat.friend_search_form:
  167. path: '/heartbeat/form/friend_search'
  168. defaults:
  169. _form: '\Drupal\heartbeat\Form\FriendSearchForm'
  170. _title: 'FriendSearchForm'
  171. requirements:
  172. _access: 'TRUE'
  173. heartbeat.friend_interact:
  174. path: '/heartbeat/friend_interact/{uid}'
  175. defaults:
  176. _controller: '\Drupal\heartbeat\Controller\HeartbeatController::friendInteract'
  177. _title: 'Interact with a potential friend'
  178. requirements:
  179. _permission: 'access content'