custom_block.routing.yml 778 Bytes
Newer Older
1 2 3
custom_block_type_list:
  pattern: '/admin/structure/custom-blocks'
  defaults:
4
    _entity_list: 'custom_block_type'
5 6 7
  requirements:
    _permission: 'administer blocks'

8 9 10 11 12 13
custom_block_add_page:
  pattern: block/add
  defaults:
    _content: 'Drupal\custom_block\Controller\CustomBlockController::add'
  requirements:
    _permission: 'administer blocks'
14 15 16 17 18 19 20

custom_block_add_form:
  pattern: block/add/{custom_block_type}
  defaults:
    _content: 'Drupal\custom_block\Controller\CustomBlockController::addForm'
  requirements:
    _permission: 'administer blocks'
21 22 23 24 25 26 27

custom_block_type_delete:
  pattern: '/admin/structure/custom-blocks/manage/{custom_block_type}/delete'
  defaults:
    _entity_form: 'custom_block_type.delete'
  requirements:
    _permission: 'administer blocks'