entity.search_api_saved_search.canonical:
  path: '/saved-search/{search_api_saved_search}'
  defaults:
    _controller: '\Drupal\search_api_saved_searches\Controller\SavedSearchController::viewSearch'
  requirements:
    _entity_access: 'search_api_saved_search.view'

entity.search_api_saved_search.activate:
  path: '/saved-search/{search_api_saved_search}/activate'
  defaults:
    _controller: '\Drupal\search_api_saved_searches\Controller\SavedSearchController::activateSearch'
  requirements:
    _entity_access: 'search_api_saved_search.activate'

entity.search_api_saved_search.edit_form:
  path: '/saved-search/{search_api_saved_search}/edit'
  defaults:
    _entity_form: 'search_api_saved_search.edit'
  requirements:
    _entity_access: 'search_api_saved_search.edit'

entity.search_api_saved_search.delete_form:
  path: '/saved-search/{search_api_saved_search}/delete'
  defaults:
    _entity_form: 'search_api_saved_search.delete'
  requirements:
    _entity_access: 'search_api_saved_search.delete'

entity.search_api_saved_search_type.collection:
  path: '/admin/config/search/search-api-saved-searches'
  defaults:
    _title: 'Saved searches'
    _entity_list: 'search_api_saved_search_type'
  requirements:
    _permission: 'administer search_api_saved_searches'

entity.search_api_saved_search_type.add_form:
  path: '/admin/config/search/search-api-saved-searches/add-type'
  defaults:
    _entity_form: 'search_api_saved_search_type.default'
  requirements:
    _entity_create_access: 'search_api_saved_search_type'

entity.search_api_saved_search_type.edit_form:
  path: '/admin/config/search/search-api-saved-searches/type/{search_api_saved_search_type}/edit'
  defaults:
    _entity_form: 'search_api_saved_search_type.edit'
  requirements:
    _entity_access: 'search_api_saved_search_type.edit'

entity.search_api_saved_search_type.delete_form:
  path: '/admin/config/search/search-api-saved-searches/type/{search_api_saved_search_type}/delete'
  defaults:
    _entity_form: 'search_api_saved_search_type.delete'
  requirements:
    _entity_access: 'search_api_saved_search_type.delete'
