You are here

wysiwyg_template.routing.yml in Wysiwyg API template plugin 8.2

Same filename and directory in other branches
  1. 3.0.x wysiwyg_template.routing.yml

File

wysiwyg_template.routing.yml
View source
  1. wysiwyg_template.list_js:
  2. path: '/wysiwyg-templates/js'
  3. defaults:
  4. _controller: '\Drupal\wysiwyg_template\Controller\TemplateController::listJson'
  5. requirements:
  6. _permission: 'access content'
  7. # @todo Implement per-content-type listings.
  8. # @see https://www.drupal.org/node/2693221
  9. wysiwyg_template.list_js.type:
  10. path: '/wysiwyg-templates/js/{node_type}'
  11. defaults:
  12. _controller: '\Drupal\wysiwyg_template\Controller\TemplateController::listJson'
  13. requirements:
  14. _permission: 'access content'
  15. options:
  16. parameters:
  17. node_type:
  18. with_config_overrides: TRUE
  19. # Template routing definition
  20. entity.wysiwyg_template.collection:
  21. path: '/admin/config/content/wysiwyg-templates'
  22. defaults:
  23. _entity_list: 'wysiwyg_template'
  24. _title: 'WYSIWYG templates'
  25. requirements:
  26. _permission: 'administer wysiwyg templates'
  27. entity.wysiwyg_template.add_form:
  28. path: '/admin/config/content/wysiwyg-templates/add'
  29. defaults:
  30. _entity_form: 'wysiwyg_template.add'
  31. _title: 'Add template'
  32. requirements:
  33. _permission: 'administer wysiwyg templates'
  34. entity.wysiwyg_template.edit_form:
  35. path: '/admin/config/content/wysiwyg-templates/{wysiwyg_template}'
  36. defaults:
  37. _entity_form: 'wysiwyg_template.edit'
  38. _title: 'Edit template'
  39. requirements:
  40. _permission: 'administer wysiwyg templates'
  41. entity.wysiwyg_template.delete_form:
  42. path: '/admin/config/content/wysiwyg-templates/{wysiwyg_template}/delete'
  43. defaults:
  44. _entity_form: 'wysiwyg_template.delete'
  45. _title: 'Delete template'
  46. requirements:
  47. _permission: 'administer wysiwyg templates'