entity_test.routing.yml

Same filename in other branches
  1. 9 core/modules/system/tests/modules/entity_test/entity_test.routing.yml
  2. 8.9.x core/modules/system/tests/modules/entity_test/entity_test.routing.yml
  3. 10 core/modules/system/tests/modules/entity_test/entity_test.routing.yml
core/modules/system/tests/modules/entity_test/entity_test.routing.yml
3 string references to YAML keys in entity_test.routing.yml
EntityCacheTagsTestBase::testReferencedEntity in core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php
Tests cache tags presence and invalidation of the entity when referenced.
EntityUrlLanguageTest::testEntityUrlLanguageWithLanguageContentEnabled in core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php
Ensures correct entity URLs with the method language-content-entity enabled.
LanguageNegotiationContentEntityTest::testEnabledLanguageContentNegotiator in core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php
Tests enabling the language negotiator language_content_entity.

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_mulrev.revision:
  52. path: '/entity_test_mulrev/{entity_test_mulrev}/revision/{entity_test_mulrev_revision}/view'
  53. defaults:
  54. _controller: '\Drupal\Core\Entity\Controller\EntityRevisionViewController'
  55. options:
  56. parameters:
  57. entity_test_mulrev:
  58. type: entity:entity_test_mulrev
  59. entity_test_mulrev_revision:
  60. type: entity_revision:entity_test_mulrev
  61. requirements:
  62. _access: 'TRUE'
  63. entity.block.test_operation:
  64. path: '/admin/structure/block/manage/{block}/test_operation'
  65. defaults:
  66. _entity_view: 'entity_test'
  67. requirements:
  68. _access: 'TRUE'
  69. entity.user_role.test_operation:
  70. path: '/admin/people/roles/manage/{user_role}/test_operation'
  71. defaults:
  72. _entity_view: 'entity_test'
  73. requirements:
  74. _access: 'TRUE'
  75. entity.entity_test_view_builder.canonical:
  76. path: '/entity_test_view_builder/{entity_test_view_builder}'
  77. defaults:
  78. _entity_view: 'entity_test_view_builder'
  79. requirements:
  80. _access: 'TRUE'
  81. entity.entity_test_computed_field.canonical:
  82. path: '/entity_test_computed_field/{entity_test_computed_field}'
  83. defaults:
  84. _entity_view: 'entity_test_computed_field.full'
  85. _title: 'Test full view mode'
  86. requirements:
  87. _entity_access: 'entity_test_computed_field.view'
  88. route_callbacks:
  89. - '\Drupal\entity_test\Routing\EntityTestRoutes::routes'

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