tracker.routing.yml 824 B

123456789101112131415161718192021222324252627
  1. tracker.page:
  2. path: '/activity'
  3. defaults:
  4. _controller: '\Drupal\tracker\Controller\TrackerPage::getContent'
  5. _title: 'Recent content'
  6. requirements:
  7. _permission: 'access content'
  8. tracker.users_recent_content:
  9. path: '/activity/{user}'
  10. defaults:
  11. _controller: '\Drupal\tracker\Controller\TrackerUserRecent::getContent'
  12. _title: 'My recent content'
  13. requirements:
  14. _permission: 'access content'
  15. _custom_access: '\Drupal\tracker\Controller\TrackerUserRecent::checkAccess'
  16. user: \d+
  17. tracker.user_tab:
  18. path: '/user/{user}/activity'
  19. defaults:
  20. _controller: '\Drupal\tracker\Controller\TrackerUserTab::getContent'
  21. _title_callback: '\Drupal\tracker\Controller\TrackerUserTab::getTitle'
  22. requirements:
  23. _permission: 'access content'
  24. _entity_access: 'user.view'
  25. user: \d+