Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
8ccd0313a7 | |||
ab2662195b | |||
b81d6b5f31 |
@ -2,22 +2,68 @@ langcode: en
|
|||||||
status: true
|
status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
config:
|
config:
|
||||||
- system.menu.opencase-admin
|
- system.menu.opencase
|
||||||
module:
|
module:
|
||||||
- system
|
- superfish
|
||||||
theme:
|
theme:
|
||||||
- bartik
|
- bartik
|
||||||
id: opencase
|
id: opencase
|
||||||
theme: bartik
|
theme: bartik
|
||||||
region: sidebar_first
|
region: primary_menu
|
||||||
weight: -8
|
weight: 0
|
||||||
provider: null
|
provider: null
|
||||||
plugin: 'system_menu_block:opencase-admin'
|
plugin: 'superfish:opencase'
|
||||||
settings:
|
settings:
|
||||||
id: 'system_menu_block:opencase-admin'
|
id: 'superfish:opencase'
|
||||||
label: 'OpenCase Admin'
|
label: OpenCase
|
||||||
provider: system
|
provider: superfish
|
||||||
label_display: visible
|
label_display: '0'
|
||||||
level: 1
|
level: '1'
|
||||||
depth: 0
|
depth: '0'
|
||||||
|
menu_type: horizontal
|
||||||
|
style: none
|
||||||
|
arrow: 0
|
||||||
|
shadow: 1
|
||||||
|
speed: fast
|
||||||
|
delay: '800'
|
||||||
|
slide: vertical
|
||||||
|
supposition: 1
|
||||||
|
hoverintent: 1
|
||||||
|
touch: '0'
|
||||||
|
touchbh: '2'
|
||||||
|
touchbp: '768'
|
||||||
|
touchua: '0'
|
||||||
|
touchual: ''
|
||||||
|
touchuam: '0'
|
||||||
|
small: '2'
|
||||||
|
smallbp: '768'
|
||||||
|
smallua: '0'
|
||||||
|
smallual: ''
|
||||||
|
smalluam: '0'
|
||||||
|
smallact: '1'
|
||||||
|
smallset: ''
|
||||||
|
smallasa: 0
|
||||||
|
smallcmc: 0
|
||||||
|
smallecm: ''
|
||||||
|
smallchc: 0
|
||||||
|
smallech: ''
|
||||||
|
smallicm: ''
|
||||||
|
smallich: ''
|
||||||
|
smallamt: ''
|
||||||
|
smallabt: '1'
|
||||||
|
supersubs: 1
|
||||||
|
minwidth: '12'
|
||||||
|
maxwidth: '27'
|
||||||
|
multicolumn: 0
|
||||||
|
multicolumn_depth: '1'
|
||||||
|
multicolumn_levels: '1'
|
||||||
|
pathlevels: '1'
|
||||||
|
expanded: 0
|
||||||
|
clone_parent: 0
|
||||||
|
hide_linkdescription: 0
|
||||||
|
add_linkdescription: 0
|
||||||
|
link_depth_class: 1
|
||||||
|
custom_list_class: ''
|
||||||
|
custom_item_class: ''
|
||||||
|
custom_link_class: ''
|
||||||
visibility: { }
|
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_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.canonical',
|
||||||
'entity.oc_activity.edit_form',
|
'entity.oc_activity.edit_form',
|
||||||
'entity.oc_activity.add_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);
|
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() {
|
function opencase_uninstall() {
|
||||||
$configs = [
|
$configs = [
|
||||||
'block.block.opencasecontextualmenu',
|
'block.block.opencasecontextualmenu',
|
||||||
'block.block.opencase',
|
|
||||||
'block.block.opencaseaddactors',
|
|
||||||
'system.menu.opencase-add-actors',
|
|
||||||
'system.menu.openc',
|
|
||||||
'views.view.cases',
|
'views.view.cases',
|
||||||
'block.block.opencaseglobal',
|
|
||||||
'system.menu.opencase-admin',
|
|
||||||
'views.view.activities'
|
'views.view.activities'
|
||||||
];
|
];
|
||||||
foreach($configs as $config) {
|
foreach($configs as $config) {
|
||||||
|
Reference in New Issue
Block a user