You are here

entity_test.routing.yml in Zircon Profile 8

core/modules/system/tests/modules/entity_test/entity_test.routing.yml

File

core/modules/system/tests/modules/entity_test/entity_test.routing.yml
View source
  1. entity.entity_test.canonical:
  2. path: '/entity_test/{entity_test}'
  3. defaults:
  4. _entity_view: 'entity_test.full'
  5. _title: 'Test full view mode'
  6. requirements:
  7. _entity_access: 'entity_test.view'
  8. entity.entity_test.render_options:
  9. path: '/entity_test_converter/{foo}'
  10. options:
  11. parameters:
  12. foo:
  13. type: 'entity:entity_test'
  14. defaults:
  15. _entity_view: 'entity_test.full'
  16. requirements:
  17. _entity_access: 'foo.view'
  18. entity.entity_test.render_no_view_mode:
  19. path: '/entity_test_no_view_mode/{entity_test}'
  20. defaults:
  21. _entity_view: 'entity_test'
  22. requirements:
  23. _access: 'TRUE'
  24. entity.entity_test.collection_referencing_entities:
  25. path: '/entity_test/list/{entity_reference_field_name}/{referenced_entity_type}/{referenced_entity_id}'
  26. defaults:
  27. _controller: '\Drupal\entity_test\Controller\EntityTestController::listReferencingEntities'
  28. _title: 'List entity_test entities referencing the given entity'
  29. requirements:
  30. _access: 'TRUE'
  31. entity.entity_test.collection_labels_alphabetically:
  32. path: '/entity_test/list_labels_alphabetically/{entity_type_id}'
  33. defaults:
  34. _controller: '\Drupal\entity_test\Controller\EntityTestController::listEntitiesAlphabetically'
  35. _title: 'List labels of entities of the given entity type alphabetically'
  36. requirements:
  37. _access: 'TRUE'
  38. entity.entity_test.collection_empty:
  39. path: '/entity_test/list_empty/{entity_type_id}'
  40. defaults:
  41. _controller: '\Drupal\entity_test\Controller\EntityTestController::listEntitiesEmpty'
  42. _title: 'Empty list of entities of the given entity type, empty because no entities match the query'
  43. requirements:
  44. _access: 'TRUE'
  45. entity.entity_test.collection:
  46. path: '/entity_test/list'
  47. defaults:
  48. _entity_list: entity_test
  49. requirements:
  50. _access: 'TRUE'
  51. entity.entity_test_rev.revision:
  52. path: '/entity_test_rev/{entity_test_rev}/revision/{entity_test_rev_revision}/view'
  53. defaults:
  54. _entity_view: 'entity_test_rev'
  55. requirements:
  56. _access: 'TRUE'
  57. entity.block.test_operation:
  58. path: '/admin/structure/block/manage/{block}/test_operation'
  59. defaults:
  60. _entity_view: 'entity_test'
  61. requirements:
  62. _access: 'TRUE'
  63. entity.user_role.test_operation:
  64. path: '/admin/people/roles/manage/{user_role}/test_operation'
  65. defaults:
  66. _entity_view: 'entity_test'
  67. requirements:
  68. _access: 'TRUE'
  69. entity.entity_test_view_builder.canonical:
  70. path: '/entity_test_view_builder/{entity_test_view_builder}'
  71. defaults:
  72. _entity_view: 'entity_test_view_builder'
  73. requirements:
  74. _access: 'TRUE'
  75. route_callbacks:
  76. - '\Drupal\entity_test\Routing\EntityTestRoutes::routes'