history.routing.yml

core/modules/history/history.routing.yml
1 string reference to YAML keys in history.routing.yml
CommentNewIndicatorTest::renderNewCommentsNodeLinks in core/modules/history/tests/src/Functional/CommentNewIndicatorTest.php
Get node "x new comments" metadata from the server for the current user.

File

core/modules/history/history.routing.yml

View source
  1. history.get_last_node_view:
  2. path: '/history/get_node_read_timestamps'
  3. defaults:
  4. _controller: '\Drupal\history\Controller\HistoryController::getNodeReadTimestamps'
  5. requirements:
  6. _permission: 'access content'
  7. history.read_node:
  8. path: '/history/{node}/read'
  9. defaults:
  10. _controller: '\Drupal\history\Controller\HistoryController::readNode'
  11. requirements:
  12. _entity_access: 'node.view'
  13. node: \d+
  14. history.new_comments_node_links:
  15. path: '/history/render_new_comments_node_links'
  16. defaults:
  17. _controller: '\Drupal\history\Controller\HistoryController::renderNewCommentsNodeLinks'
  18. requirements:
  19. _permission: 'access content'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.