# 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.heartbeat_save: path: '/heartbeat/heartbeats/save' defaults: _controller: '\Drupal\heartbeat\Controller\TestController::saveHeartbeats' _title: 'run' requirements: _permission: 'access content' heartbeat.heartbeat_load: path: '/heartbeat/heartbeats/load' defaults: _controller: '\Drupal\heartbeat\Controller\TestController::getHeartbeats' _title: 'run' requirements: _permission: 'access content' heartbeat.heartbeat_delete: path: '/heartbeat/heartbeats/delete' defaults: _controller: '\Drupal\heartbeat\Controller\TestController::deleteHeartbeats' _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' #This should probably be associated with the word more or add heartbeat.update_feed: path: '/heartbeat/update_feed/{hid}' defaults: _controller: '\Drupal\heartbeat\Controller\HeartbeatController::updateFeed' _title: 'Update Feed' requirements: _permission: 'access content' heartbeat.heartbeat_update_feed_form: path: '/heartbeat/form/heartbeat_update_feed' defaults: _form: '\Drupal\heartbeat\Form\HeartbeatUpdateFeedForm' _title: 'HeartbeatUpdateFeedForm' requirements: _access: 'TRUE' heartbeat.heartbeat_filter_feed: path: '/heartbeat/filter-feed/{tid}' defaults: _controller: '\Drupal\heartbeat\Controller\HeartbeatController::filterFeed' _title: 'Heartbeat Filter Feed' requirements: _access: 'TRUE' heartbeat.heartbeat_user_filter_feed: path: '/heartbeat/filter-feed/username/{tid}' defaults: _controller: '\Drupal\heartbeat\Controller\HeartbeatController::userFilterFeed' _title: 'Heartbeat User Filter Feed' requirements: _access: 'TRUE' heartbeat.heartbeat_comment_update: path: '/heartbeat/commentupdate/{entity_id}' defaults: _controller: '\Drupal\heartbeat\Controller\HeartbeatController::commentConfigUpdate' _title: 'Heartbeat Comment Config Update' requirements: _access: 'TRUE' #heartbeat.heartbeat_sub_comment_update: # path: '/heartbeat/subcommentupdate/{cid}' # defaults: # _controller: '\Drupal\heartbeat\Controller\HeartbeatController::subCommentConfigUpdate' # _title: 'Heartbeat Sub Comment Config Update' # requirements: # _access: 'TRUE' heartbeat.sub_comment: path: '/heartbeat/subcomment/{cid}' defaults: _controller: '\Drupal\heartbeat\Controller\HeartbeatController::subComment' _title: 'Sub Comment Block' requirements: _permission: 'access content' heartbeat.sub_comment_request: path: '/heartbeat/subcommentrequest/{cid}' defaults: _controller: '\Drupal\heartbeat\Controller\HeartbeatController::subCommentRequest' _title: 'Sub Comment Block' requirements: _permission: 'access content' heartbeat.user_edit: path: '/user/' defaults: _title: 'User Edit' requirements: _permission: 'access content' # 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. heartbeat.flag_controller: path: '/heartbeat/userflaggings' defaults: _controller: '\Drupal\heartbeat\Controller\FlagController::getUserFlaggings' _title: 'getUserFlaggings' methods: [POST] requirements: _permission: 'access content' heartbeat.friend_search_form: path: '/heartbeat/form/friend_search' defaults: _form: '\Drupal\heartbeat\Form\FriendSearchForm' _title: 'FriendSearchForm' requirements: _access: 'TRUE' heartbeat.friend_interact: path: '/heartbeat/friend_interact/{uid}' defaults: _controller: '\Drupal\heartbeat\Controller\HeartbeatController::friendInteract' _title: 'Interact with a potential friend' requirements: _permission: 'access content'