Removed config for disused menus
This commit is contained in:
parent
ad6811b5e9
commit
b81d6b5f31
@ -1,23 +0,0 @@
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- system.menu.opencase-admin
|
||||
module:
|
||||
- system
|
||||
theme:
|
||||
- bartik
|
||||
id: opencase
|
||||
theme: bartik
|
||||
region: sidebar_first
|
||||
weight: -8
|
||||
provider: null
|
||||
plugin: 'system_menu_block:opencase-admin'
|
||||
settings:
|
||||
id: 'system_menu_block:opencase-admin'
|
||||
label: 'OpenCase Admin'
|
||||
provider: system
|
||||
label_display: visible
|
||||
level: 1
|
||||
depth: 0
|
||||
visibility: { }
|
@ -1,31 +0,0 @@
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- system.menu.opencase-add-actors
|
||||
module:
|
||||
- system
|
||||
- user
|
||||
theme:
|
||||
- bartik
|
||||
id: opencaseaddactors
|
||||
theme: bartik
|
||||
region: sidebar_first
|
||||
weight: -8
|
||||
provider: null
|
||||
plugin: 'system_menu_block:opencase-add-actors'
|
||||
settings:
|
||||
id: 'system_menu_block:opencase-add-actors'
|
||||
label: 'Add Actors'
|
||||
provider: system
|
||||
label_display: visible
|
||||
level: 1
|
||||
depth: 0
|
||||
visibility:
|
||||
user_role:
|
||||
id: user_role
|
||||
roles:
|
||||
authenticated: authenticated
|
||||
negate: false
|
||||
context_mapping:
|
||||
user: '@user.current_user_context:current_user'
|
@ -1,31 +0,0 @@
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- system.menu.openc
|
||||
module:
|
||||
- system
|
||||
- user
|
||||
theme:
|
||||
- bartik
|
||||
id: opencaseglobal
|
||||
theme: bartik
|
||||
region: sidebar_first
|
||||
weight: -7
|
||||
provider: null
|
||||
plugin: 'system_menu_block:openc'
|
||||
settings:
|
||||
id: 'system_menu_block:openc'
|
||||
label: 'OpenCase Global'
|
||||
provider: system
|
||||
label_display: '0'
|
||||
level: 1
|
||||
depth: 0
|
||||
visibility:
|
||||
user_role:
|
||||
id: user_role
|
||||
roles:
|
||||
authenticated: authenticated
|
||||
negate: false
|
||||
context_mapping:
|
||||
user: '@user.current_user_context:current_user'
|
@ -1,7 +0,0 @@
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: opencase
|
||||
label: OpenCase
|
||||
description: 'Main navigation menu for OpenCase'
|
||||
locked: false
|
@ -1,7 +0,0 @@
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: opencase_reporting
|
||||
label: 'OpenCase Reporting'
|
||||
description: ''
|
||||
locked: false
|
@ -30,8 +30,6 @@ function opencase_block_access(\Drupal\block\Entity\Block $block, $operation, \D
|
||||
'entity.oc_activity.canonical',
|
||||
'entity.oc_activity.edit_form',
|
||||
'entity.oc_activity.add_form',
|
||||
'system.menu.opencase-add-actors',
|
||||
'block.block.opencaseaddactors',
|
||||
];
|
||||
return AccessResult::forbiddenIf(!in_array($route_name, $routes_where_it_should_be_shown))->addCacheableDependency($block);
|
||||
}
|
||||
@ -140,13 +138,7 @@ function opencase_form_oc_case_type_edit_form_alter(&$form, $form_state) {
|
||||
function opencase_uninstall() {
|
||||
$configs = [
|
||||
'block.block.opencasecontextualmenu',
|
||||
'block.block.opencase',
|
||||
'block.block.opencaseaddactors',
|
||||
'system.menu.opencase-add-actors',
|
||||
'system.menu.openc',
|
||||
'views.view.cases',
|
||||
'block.block.opencaseglobal',
|
||||
'system.menu.opencase-admin',
|
||||
'views.view.activities'
|
||||
];
|
||||
foreach($configs as $config) {
|
||||
|
Reference in New Issue
Block a user