You are here

crop.routing.yml in Crop API 8

Same filename and directory in other branches
  1. 8.2 crop.routing.yml

File

crop.routing.yml
View source
  1. crop.overview_types:
  2. path: '/admin/config/media/crop'
  3. defaults:
  4. _controller: '\Drupal\Core\Entity\Controller\EntityListController::listing'
  5. entity_type: 'crop_type'
  6. _title: 'Crop types'
  7. requirements:
  8. _permission: 'administer crop types'
  9. crop.type_add:
  10. path: '/admin/config/media/crop/add'
  11. defaults:
  12. _entity_form: 'crop_type.add'
  13. _title: 'Add crop type'
  14. requirements:
  15. _permission: 'administer crop types'
  16. entity.crop_type.edit_form:
  17. path: '/admin/config/media/crop/manage/{crop_type}'
  18. defaults:
  19. _entity_form: 'crop_type.edit'
  20. requirements:
  21. _permission: 'administer crop types'
  22. entity.crop_type.delete_form:
  23. path: '/admin/config/media/crop/manage/{crop_type}/delete'
  24. defaults:
  25. _entity_form: 'crop_type.delete'
  26. _title: 'Delete'
  27. requirements:
  28. _entity_access: 'crop_type.delete'