You are here

languagefield.routing.yml in Custom Language field 8

File

languagefield.routing.yml
View source
  1. languagefield.autocomplete:
  2. path: '/languagefield/autocomplete/{entity_type}/{bundle}/{field_name}'
  3. defaults:
  4. _controller: '\Drupal\languagefield\Controller\LanguageAutocompleteController::autocomplete'
  5. requirements:
  6. _access: 'TRUE'
  7. languagefield.custom_language.collection:
  8. path: '/admin/config/regional/custom_language'
  9. defaults:
  10. # Must be the same as our config entity type id.
  11. _entity_list: 'custom_language'
  12. _title: 'Custom languages'
  13. requirements:
  14. _permission: 'administer languages'
  15. languagefield.custom_language_add:
  16. path: '/admin/config/regional/custom_language/add'
  17. defaults:
  18. _entity_form: custom_language.default
  19. _title: 'Add custom language'
  20. requirements:
  21. _permission: 'administer languages'
  22. entity.custom_language.edit_form:
  23. path: '/admin/config/regional/custom_language/manage/{custom_language}'
  24. defaults:
  25. _entity_form: custom_language.default
  26. _title: 'Edit custom language'
  27. requirements:
  28. _permission: 'administer languages'
  29. entity.custom_language.delete_form:
  30. path: '/admin/config/regional/custom_language/manage/{custom_language}/delete'
  31. defaults:
  32. _entity_form: custom_language.delete
  33. _title: 'Delete custom language'
  34. requirements:
  35. _permission: 'administer languages'