entity_test.routing.yml

Same filename in other branches
  1. 9 core/modules/system/tests/modules/entity_test/entity_test.routing.yml
  2. 10 core/modules/system/tests/modules/entity_test/entity_test.routing.yml
  3. 11.x core/modules/system/tests/modules/entity_test/entity_test.routing.yml
core/modules/system/tests/modules/entity_test/entity_test.routing.yml
4 string references to YAML keys in entity_test.routing.yml
EntityCacheTagsTestBase::testReferencedEntity in core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php
Tests cache tags presence and invalidation of the entity when referenced.
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_rev.revision:
  52. path: '/entity_test_rev/{entity_test_rev}/revision/{entity_test_rev_revision}/view'
  53. defaults:
  54. _controller: '\Drupal\Core\Entity\Controller\EntityViewController::viewRevision'
  55. options:
  56. parameters:
  57. entity_test_rev:
  58. type: entity:entity_test_rev
  59. entity_test_rev_revision:
  60. type: entity_revision:entity_test_rev
  61. requirements:
  62. _access: 'TRUE'
  63. entity.entity_test_mulrev.revision:
  64. path: '/entity_test_mulrev/{entity_test_mulrev}/revision/{entity_test_mulrev_revision}/view'
  65. defaults:
  66. _controller: '\Drupal\Core\Entity\Controller\EntityViewController::viewRevision'
  67. options:
  68. parameters:
  69. entity_test_mulrev:
  70. type: entity:entity_test_mulrev
  71. entity_test_mulrev_revision:
  72. type: entity_revision:entity_test_mulrev
  73. requirements:
  74. _access: 'TRUE'
  75. entity.block.test_operation:
  76. path: '/admin/structure/block/manage/{block}/test_operation'
  77. defaults:
  78. _entity_view: 'entity_test'
  79. requirements:
  80. _access: 'TRUE'
  81. entity.user_role.test_operation:
  82. path: '/admin/people/roles/manage/{user_role}/test_operation'
  83. defaults:
  84. _entity_view: 'entity_test'
  85. requirements:
  86. _access: 'TRUE'
  87. entity.entity_test_view_builder.canonical:
  88. path: '/entity_test_view_builder/{entity_test_view_builder}'
  89. defaults:
  90. _entity_view: 'entity_test_view_builder'
  91. requirements:
  92. _access: 'TRUE'
  93. route_callbacks:
  94. - '\Drupal\entity_test\Routing\EntityTestRoutes::routes'

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