custom_block.routing.yml

drupal/core/modules/block/custom_block/custom_block.routing.yml
1 string reference to YAML keys in custom_block.routing.yml
custom_block_menu in drupal/core/modules/block/custom_block/custom_block.module
Implements hook_menu().

File

drupal/core/modules/block/custom_block/custom_block.routing.yml
View source
  1. custom_block_type_list:
  2. pattern: '/admin/structure/custom-blocks'
  3. defaults:
  4. _content: '\Drupal\Core\Entity\Controller\EntityListController::listing'
  5. entity_type: 'custom_block_type'
  6. requirements:
  7. _permission: 'administer blocks'
  8. custom_block_add_page:
  9. pattern: block/add
  10. defaults:
  11. _content: 'Drupal\custom_block\Controller\CustomBlockController::add'
  12. requirements:
  13. _permission: 'administer blocks'