You are here

embed.routing.yml in Embed 8

File

embed.routing.yml
View source
  1. embed.preview:
  2. path: '/embed/preview/{filter_format}'
  3. defaults:
  4. _controller: '\Drupal\embed\Controller\EmbedController::preview'
  5. requirements:
  6. _entity_access: 'filter_format.use'
  7. options:
  8. _theme: ajax_base_page
  9. embed.settings:
  10. path: '/admin/config/content/embed/settings'
  11. defaults:
  12. _form: '\Drupal\embed\Form\EmbedSettingsForm'
  13. _title: 'Settings'
  14. requirements:
  15. _permission: 'administer embed buttons'
  16. entity.embed_button.collection:
  17. path: '/admin/config/content/embed'
  18. defaults:
  19. _controller: '\Drupal\Core\Entity\Controller\EntityListController::listing'
  20. entity_type: 'embed_button'
  21. _title: 'Embed buttons'
  22. requirements:
  23. _permission: 'administer embed buttons'
  24. embed.button_add:
  25. path: '/admin/config/content/embed/button/add'
  26. defaults:
  27. _entity_form: 'embed_button.add'
  28. _title: 'Add embed button'
  29. requirements:
  30. _entity_create_access: 'embed_button'
  31. entity.embed_button.edit_form:
  32. path: '/admin/config/content/embed/button/manage/{embed_button}'
  33. defaults:
  34. _entity_form: 'embed_button.edit'
  35. _title: 'Edit embed button'
  36. requirements:
  37. _entity_access: 'embed_button.update'
  38. entity.embed_button.delete_form:
  39. path: '/admin/config/content/embed/button/manage/{embed_button}/delete'
  40. defaults:
  41. _entity_form: 'embed_button.delete'
  42. _title: 'Delete embed button'
  43. requirements:
  44. _entity_access: 'embed_button.delete'