Added menu link config to opencase module.

For opencase-admin and openc (OpenCase Global) menus.
This commit is contained in:
naomi 2018-07-05 15:56:19 +02:00
parent 73e7ff2656
commit 6c6c6d5c92
6 changed files with 123 additions and 0 deletions

View File

@ -0,0 +1,23 @@
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: { }

View File

@ -0,0 +1,19 @@
langcode: en
status: true
dependencies:
module:
- opencase
theme:
- bartik
id: opencasecontextualmenu
theme: bartik
region: sidebar_second
weight: -8
provider: null
plugin: opencase_contextual_menu
settings:
id: opencase_contextual_menu
label: 'OpenCase Contextual Menu'
provider: opencase
label_display: visible
visibility: { }

View File

@ -0,0 +1,31 @@
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'

View File

@ -0,0 +1,7 @@
langcode: en
status: true
dependencies: { }
id: openc
label: 'OpenCase Global'
description: ''
locked: false

View File

@ -0,0 +1,7 @@
langcode: en
status: true
dependencies: { }
id: opencase-admin
label: 'OpenCase Admin'
description: 'Administer OpenCase '
locked: false

36
opencase.links.menu.yml Normal file
View File

@ -0,0 +1,36 @@
opencase.manage_user_logins:
title: 'Manager user logins'
description: 'Manage who can access the system'
menu_name: opencase-admin
url: internal:/admin/people
weight: 0
opencase.manage_actor_types:
title: 'Manage actor types'
description: 'Configure types of actors and their fields'
menu_name: opencase-admin
url: internal:/admin/opencase/oc_actor_type
weight: 1
opencase.manage_case_types:
title: 'Manage case types'
description: 'Configure types of cases and their fields'
menu_name: opencase-admin
url: internal:/admin/opencase/oc_case_type
weight: 2
opencase.manage_activity_types:
title: 'Manage activity types'
description: 'Configure types of activities and their fields'
menu_name: opencase-admin
url: internal:/admin/opencase/oc_activity_type
weight: 3
opencase.view_documentation:
title: 'Read documentation'
description: 'Find out about OpenCase and how it works'
menu_name: openc
url: https://hoegrammer.gitbooks.io/opencase/content/
weight: 0
opencase.send_feedback:
title: 'Send feedback'
description: 'Contact the OpenCase developers'
menu_name: openc
url: internal:/contact
weight: 1