created Editors admin menu module with first links, added admin menu swap contrib module
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
langcode: und
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: editors
|
||||
label: Editors
|
||||
description: 'An admin menu for content editors (must be customized for each new project)'
|
||||
locked: false
|
5
web/modules/custom/editors_menus/editors_menus.info.yml
Normal file
5
web/modules/custom/editors_menus/editors_menus.info.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
name: 'Editors Menus'
|
||||
type: module
|
||||
description: 'create editors admin menus through module as they will be exportable as config'
|
||||
core: 8.x
|
||||
package: 'Custom'
|
@@ -0,0 +1,20 @@
|
||||
editors_menus.contents:
|
||||
title: Contents
|
||||
description: ''
|
||||
parent: editors
|
||||
route_name: view.admin_nodes.page_1
|
||||
menu_name: editors
|
||||
|
||||
editors_menus.taxonomy:
|
||||
title: Taxonomy
|
||||
description: ''
|
||||
parent: editors_menus.contents
|
||||
route_name: view.admin_taxo.page_1
|
||||
menu_name: editors
|
||||
|
||||
editors_menus.users:
|
||||
title: Users
|
||||
description: ''
|
||||
parent: editors
|
||||
route_name: view.admin_users.page_1
|
||||
menu_name: editors
|
24
web/modules/custom/editors_menus/editors_menus.module
Normal file
24
web/modules/custom/editors_menus/editors_menus.module
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains editors_menus.module.
|
||||
*/
|
||||
|
||||
use Drupal\Core\Routing\RouteMatchInterface;
|
||||
|
||||
/**
|
||||
* Implements hook_help().
|
||||
*/
|
||||
function editors_menus_help($route_name, RouteMatchInterface $route_match) {
|
||||
switch ($route_name) {
|
||||
// Main module help for the editors_menus module.
|
||||
case 'help.page.editors_menus':
|
||||
$output = '';
|
||||
$output .= '<h3>' . t('About') . '</h3>';
|
||||
$output .= '<p>' . t('create editors admin menus through module as they will be exportable as config') . '</p>';
|
||||
return $output;
|
||||
|
||||
default:
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user