created Editors admin menu module with first links, added admin menu swap contrib module

This commit is contained in:
2019-02-13 12:34:00 +01:00
parent f744023090
commit b04e379114
9 changed files with 130 additions and 1 deletions

View File

@@ -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

View 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'

View File

@@ -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

View 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:
}
}