Added reporting menu with one link for Custom Report

This commit is contained in:
Naomi 2018-10-01 14:58:00 +01:00
parent bfef673d42
commit 5cde32c975
4 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,23 @@
langcode: en
status: true
dependencies:
config:
- system.menu.opencase_reporting
module:
- system
theme:
- bartik
id: opencase_reporting_menu
theme: bartik
region: sidebar_first
weight: -8
provider: null
plugin: 'system_menu_block:opencase_reporting'
settings:
id: 'system_menu_block:opencase_reporting'
label: 'Reporting'
provider: system
label_display: visible
level: 1
depth: 0
visibility: { }

View File

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

View File

@ -0,0 +1,6 @@
opencase_reporting.new_report:
title: 'Custom report'
description: 'Make your own report'
menu_name: opencase_reporting
url: internal:/opencase/reporting/actors?title=Custom+Report
weight: 0

View File

@ -47,6 +47,8 @@ function opencase_reporting_uninstall() {
'views.view.reporting_actors',
'block.block.facet_actortype',
'block.block.facet_created',
'block.block.opencase_reporting_menu',
'system.menu.opencase_reporting'
];
foreach($configs as $config) {
Drupal::configFactory()->getEditable($config)->delete();