filter.routing.yml 1.39 KB
Newer Older
1
filter.tips_all:
2
  path: '/filter/tips'
3
  defaults:
4
    _controller: '\Drupal\filter\Controller\FilterController::filterTips'
5
    _title: 'Compose tips'
6 7 8
  requirements:
    _access: 'TRUE'

9
filter.tips:
10
  path: '/filter/tips/{filter_format}'
11
  defaults:
12
    _controller: '\Drupal\filter\Controller\FilterController::filterTips'
13
    _title: 'Compose tips'
14
  requirements:
15
    _entity_access: 'filter_format.use'
16

17
filter.admin_overview:
18
  path: '/admin/config/content/formats'
19
  defaults:
20
    _controller: '\Drupal\Core\Entity\Controller\EntityListController::listing'
21
    entity_type: 'filter_format'
22
    _title: 'Text formats and editors'
23 24 25
  requirements:
    _permission: 'administer filters'

26
filter.format_add:
27
  path: '/admin/config/content/formats/add'
28 29
  defaults:
    _entity_form: filter_format.add
30
    _title: 'Add text format'
31
  requirements:
32
    _entity_create_access: 'filter_format'
33

34
entity.filter_format.edit_form:
35
  path: '/admin/config/content/formats/manage/{filter_format}'
36 37
  defaults:
    _entity_form: filter_format.edit
38
    _title_callback: '\Drupal\filter\Controller\FilterController::getLabel'
39
  requirements:
40
    _entity_access: 'filter_format.update'
41

42
entity.filter_format.disable:
43
  path: '/admin/config/content/formats/manage/{filter_format}/disable'
44 45
  defaults:
    _entity_form: 'filter_format.disable'
46
    _title: 'Disable text format'
47
  requirements:
48
    _entity_access: 'filter_format.disable'