2014-06-09 20:19:08 +00:00
|
|
|
block_content.add_page:
|
|
|
|
path: '/block/add'
|
|
|
|
defaults:
|
2014-11-20 09:47:06 +00:00
|
|
|
_controller: '\Drupal\block_content\Controller\BlockContentController::add'
|
2023-04-17 08:50:08 +00:00
|
|
|
_title: 'Add content block'
|
2014-06-09 20:19:08 +00:00
|
|
|
options:
|
|
|
|
_admin_route: TRUE
|
|
|
|
requirements:
|
Issue #1975064 by smustgrave, tanc, ravi.shankar, seanpclark, pixlkat, wengerk, meena.bisht, cboyden, rjg, klaasvw, nikitagupta, larowlan, MaskOta, mlncn, dsnopek, fenstrat, fago, vacho, yobottehg, Grimreaper, rpayanm, B-Prod, SKAUGHT, rkoller, yoroy, stefan.r, psf_, AaronMcHale, rootwork, ifrik, TravisCarden, stella, kae76, josephdpurcell@gmail.com, eelkeblok, andypost, benjifisher: Add more granular block permissions
2023-03-31 01:43:26 +00:00
|
|
|
_entity_create_any_access: 'block_content'
|
2014-06-09 20:19:08 +00:00
|
|
|
|
2023-02-07 01:00:42 +00:00
|
|
|
# @todo Deprecate this route once
|
|
|
|
# https://www.drupal.org/project/drupal/issues/3159210 is fixed, or remove
|
|
|
|
# it in Drupal 11.
|
|
|
|
# @see https://www.drupal.org/node/3320855
|
|
|
|
entity.block_content_type.collection.bc:
|
|
|
|
path: '/admin/structure/block/block-content/types'
|
|
|
|
defaults:
|
|
|
|
_controller: '\Drupal\block_content\Controller\BlockContentController::blockContentTypeRedirect'
|
|
|
|
options:
|
|
|
|
_admin_route: TRUE
|
|
|
|
requirements:
|
Issue #1975064 by smustgrave, tanc, ravi.shankar, seanpclark, pixlkat, wengerk, meena.bisht, cboyden, rjg, klaasvw, nikitagupta, larowlan, MaskOta, mlncn, dsnopek, fenstrat, fago, vacho, yobottehg, Grimreaper, rpayanm, B-Prod, SKAUGHT, rkoller, yoroy, stefan.r, psf_, AaronMcHale, rootwork, ifrik, TravisCarden, stella, kae76, josephdpurcell@gmail.com, eelkeblok, andypost, benjifisher: Add more granular block permissions
2023-03-31 01:43:26 +00:00
|
|
|
_permission: 'administer block types'
|
2023-02-07 01:00:42 +00:00
|
|
|
|
2014-06-09 20:19:08 +00:00
|
|
|
block_content.add_form:
|
|
|
|
path: '/block/add/{block_content_type}'
|
|
|
|
defaults:
|
2014-11-20 09:47:06 +00:00
|
|
|
_controller: '\Drupal\block_content\Controller\BlockContentController::addForm'
|
2019-09-17 10:30:36 +00:00
|
|
|
_title_callback: '\Drupal\block_content\Controller\BlockContentController::getAddFormTitle'
|
2014-06-09 20:19:08 +00:00
|
|
|
options:
|
|
|
|
_admin_route: TRUE
|
|
|
|
requirements:
|
Issue #1975064 by smustgrave, tanc, ravi.shankar, seanpclark, pixlkat, wengerk, meena.bisht, cboyden, rjg, klaasvw, nikitagupta, larowlan, MaskOta, mlncn, dsnopek, fenstrat, fago, vacho, yobottehg, Grimreaper, rpayanm, B-Prod, SKAUGHT, rkoller, yoroy, stefan.r, psf_, AaronMcHale, rootwork, ifrik, TravisCarden, stella, kae76, josephdpurcell@gmail.com, eelkeblok, andypost, benjifisher: Add more granular block permissions
2023-03-31 01:43:26 +00:00
|
|
|
_entity_create_access: 'block_content:{block_content_type}'
|
2014-06-09 20:19:08 +00:00
|
|
|
|
2014-08-12 02:54:07 +00:00
|
|
|
entity.block_content.canonical:
|
2014-06-09 20:19:08 +00:00
|
|
|
path: '/block/{block_content}'
|
|
|
|
defaults:
|
|
|
|
_entity_form: 'block_content.edit'
|
2023-01-25 10:39:26 +00:00
|
|
|
_title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
|
2015-01-13 10:32:23 +00:00
|
|
|
options:
|
|
|
|
_admin_route: TRUE
|
|
|
|
requirements:
|
|
|
|
_entity_access: 'block_content.update'
|
2015-11-13 01:47:26 +00:00
|
|
|
block_content: \d+
|
2015-01-13 10:32:23 +00:00
|
|
|
|
|
|
|
entity.block_content.edit_form:
|
|
|
|
path: '/block/{block_content}'
|
|
|
|
defaults:
|
|
|
|
_entity_form: 'block_content.edit'
|
2014-06-09 20:19:08 +00:00
|
|
|
options:
|
|
|
|
_admin_route: TRUE
|
|
|
|
requirements:
|
|
|
|
_entity_access: 'block_content.update'
|
2015-11-13 01:47:26 +00:00
|
|
|
block_content: \d+
|
2014-06-09 20:19:08 +00:00
|
|
|
|
2014-08-12 02:54:07 +00:00
|
|
|
entity.block_content.delete_form:
|
2014-06-09 20:19:08 +00:00
|
|
|
path: '/block/{block_content}/delete'
|
|
|
|
defaults:
|
|
|
|
_entity_form: 'block_content.delete'
|
|
|
|
_title: 'Delete'
|
|
|
|
options:
|
|
|
|
_admin_route: TRUE
|
|
|
|
requirements:
|
|
|
|
_entity_access: 'block_content.delete'
|
2015-11-13 01:47:26 +00:00
|
|
|
block_content: \d+
|
2014-06-09 20:19:08 +00:00
|
|
|
|
|
|
|
block_content.type_add:
|
Issue #2987964 by smustgrave, pminf, manuel.adan, maboresev, kishor_kolekar, benjifisher, rkoller, Chris Matthews, Sutharsan, xjm, Amber Himes Matz, AaronMcHale, larowlan, tim.plunkett, tedbow, catch: Move custom block types admin link to admin/structure
2022-12-23 19:53:58 +00:00
|
|
|
path: '/admin/structure/block-content/add'
|
2014-06-09 20:19:08 +00:00
|
|
|
defaults:
|
|
|
|
_entity_form: 'block_content_type.add'
|
|
|
|
_title: 'Add'
|
|
|
|
requirements:
|
Issue #1975064 by smustgrave, tanc, ravi.shankar, seanpclark, pixlkat, wengerk, meena.bisht, cboyden, rjg, klaasvw, nikitagupta, larowlan, MaskOta, mlncn, dsnopek, fenstrat, fago, vacho, yobottehg, Grimreaper, rpayanm, B-Prod, SKAUGHT, rkoller, yoroy, stefan.r, psf_, AaronMcHale, rootwork, ifrik, TravisCarden, stella, kae76, josephdpurcell@gmail.com, eelkeblok, andypost, benjifisher: Add more granular block permissions
2023-03-31 01:43:26 +00:00
|
|
|
_entity_create_access: 'block_content_type'
|
2014-06-09 20:19:08 +00:00
|
|
|
|
2015-01-19 09:37:11 +00:00
|
|
|
entity.block_content.collection:
|
2023-04-17 08:50:08 +00:00
|
|
|
path: '/admin/content/block'
|
2014-06-09 20:19:08 +00:00
|
|
|
defaults:
|
2023-04-17 08:50:08 +00:00
|
|
|
_title: 'Content blocks'
|
2014-06-09 20:19:08 +00:00
|
|
|
_entity_list: 'block_content'
|
|
|
|
requirements:
|
Issue #1975064 by smustgrave, tanc, ravi.shankar, seanpclark, pixlkat, wengerk, meena.bisht, cboyden, rjg, klaasvw, nikitagupta, larowlan, MaskOta, mlncn, dsnopek, fenstrat, fago, vacho, yobottehg, Grimreaper, rpayanm, B-Prod, SKAUGHT, rkoller, yoroy, stefan.r, psf_, AaronMcHale, rootwork, ifrik, TravisCarden, stella, kae76, josephdpurcell@gmail.com, eelkeblok, andypost, benjifisher: Add more granular block permissions
2023-03-31 01:43:26 +00:00
|
|
|
_permission: 'access block library+administer block content'
|
Issue #2862564 by smustgrave, Manuel Garcia, ifrik, acbramley, amjad1233, benjifisher, manuel.adan, Anchal_gupta, tedbow, Lendude, yogeshmpawar, larowlan, rkoller, AaronMcHale, gambry, rachel_norfolk, yoroy, xjm, Webbeh, catch, mstrelan: Move Custom block library to Content
2023-02-21 22:09:53 +00:00
|
|
|
|
|
|
|
# @todo Deprecate this route once
|
|
|
|
# https://www.drupal.org/project/drupal/issues/3159210 is fixed, or remove
|
|
|
|
# it in Drupal 11.
|
|
|
|
# @see https://www.drupal.org/node/3320855
|
|
|
|
entity.block_content.collection.bc:
|
|
|
|
path: '/admin/structure/block/block-content'
|
|
|
|
defaults:
|
|
|
|
_controller: '\Drupal\block_content\Controller\BlockContentController::blockLibraryRedirect'
|
|
|
|
requirements:
|
Issue #1975064 by smustgrave, tanc, ravi.shankar, seanpclark, pixlkat, wengerk, meena.bisht, cboyden, rjg, klaasvw, nikitagupta, larowlan, MaskOta, mlncn, dsnopek, fenstrat, fago, vacho, yobottehg, Grimreaper, rpayanm, B-Prod, SKAUGHT, rkoller, yoroy, stefan.r, psf_, AaronMcHale, rootwork, ifrik, TravisCarden, stella, kae76, josephdpurcell@gmail.com, eelkeblok, andypost, benjifisher: Add more granular block permissions
2023-03-31 01:43:26 +00:00
|
|
|
_permission: 'access block library+administer block content'
|