bueditor.admin:
  path: '/admin/config/content/bueditor'
  defaults:
    _controller: '\Drupal\bueditor\Controller\BUEditorController::adminOverview'
    _title: 'BUEditor'
  requirements:
    _permission: 'administer bueditor'

bueditor.editor_add:
  path: '/admin/config/content/bueditor/add-editor'
  defaults:
    _entity_form: 'bueditor_editor.add'
    _title: 'Add editor'
  requirements:
    _entity_create_access: 'bueditor_editor'

entity.bueditor_editor.edit_form:
  path: '/admin/config/content/bueditor/{bueditor_editor}'
  defaults:
    _entity_form: 'bueditor_editor.edit'
    _title: 'Edit editor'
  requirements:
    _entity_access: 'bueditor_editor.update'

entity.bueditor_editor.delete_form:
  path: '/admin/config/content/bueditor/{bueditor_editor}/delete'
  defaults:
    _entity_form: 'bueditor_editor.delete'
    _title: 'Delete editor'
  requirements:
    _entity_access: 'bueditor_editor.delete'

entity.bueditor_editor.duplicate_form:
  path: '/admin/config/content/bueditor/{bueditor_editor}/duplicate'
  defaults:
    _entity_form: 'bueditor_editor.duplicate'
    _title: 'Duplicate editor'
  requirements:
    _entity_create_access: 'bueditor_editor'

bueditor.buttons:
  path: '/admin/config/content/bueditor/buttons'
  defaults:
    _controller: '\Drupal\bueditor\Controller\BUEditorController::buttonsOverview'
    _title: 'Buttons'
  requirements:
    _permission: 'administer bueditor'

bueditor.button_add:
  path: '/admin/config/content/bueditor/buttons/add-button'
  defaults:
    _entity_form: 'bueditor_button.add'
    _title: 'Add button'
  requirements:
    _entity_create_access: 'bueditor_button'

entity.bueditor_button.edit_form:
  path: '/admin/config/content/bueditor/buttons/{bueditor_button}'
  defaults:
    _entity_form: 'bueditor_button.edit'
    _title: 'Edit button'
  requirements:
    _entity_access: 'bueditor_button.update'

entity.bueditor_button.delete_form:
  path: '/admin/config/content/bueditor/buttons/{bueditor_button}/delete'
  defaults:
    _entity_form: 'bueditor_button.delete'
    _title: 'Delete button'
  requirements:
    _entity_access: 'bueditor_button.delete'

entity.bueditor_button.duplicate_form:
  path: '/admin/config/content/bueditor/buttons/{bueditor_button}/duplicate'
  defaults:
    _entity_form: 'bueditor_button.duplicate'
    _title: 'Duplicate button'
  requirements:
    _entity_create_access: 'bueditor_button'

bueditor.settings:
  path: '/admin/config/content/bueditor/settings'
  defaults:
    _form: '\Drupal\bueditor\Form\BUEditorSettingsForm'
    _title: 'Settings'
  requirements:
    _permission: 'administer bueditor'

drupal.xpreview:
  path: '/xpreview'
  defaults:
    _controller: '\Drupal\bueditor\Controller\XPreviewController::response'
  requirements:
    _permission: 'access ajax preview'