created Editors admin menu module with first links, added admin menu swap contrib module
This commit is contained in:
		@@ -20,6 +20,7 @@
 | 
			
		||||
        "composer/installers": "^1.2",
 | 
			
		||||
        "cweagans/composer-patches": "^1.6.5",
 | 
			
		||||
        "drupal-composer/drupal-scaffold": "^2.5",
 | 
			
		||||
        "drupal/amswap": "^2.0",
 | 
			
		||||
        "drupal/computed_field": "^2.0@beta",
 | 
			
		||||
        "drupal/config_split": "^1.4",
 | 
			
		||||
        "drupal/console": "^1.0.2",
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										53
									
								
								composer.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										53
									
								
								composer.lock
									
									
									
										generated
									
									
									
								
							@@ -4,7 +4,7 @@
 | 
			
		||||
        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
 | 
			
		||||
        "This file is @generated automatically"
 | 
			
		||||
    ],
 | 
			
		||||
    "content-hash": "2870a938f62d53a1a99aec9c27481936",
 | 
			
		||||
    "content-hash": "760cceafed650ef4ca099f8605a1efce",
 | 
			
		||||
    "packages": [
 | 
			
		||||
        {
 | 
			
		||||
            "name": "alchemy/zippy",
 | 
			
		||||
@@ -1958,6 +1958,57 @@
 | 
			
		||||
                "source": "http://cgit.drupalcode.org/advanced_text_formatter"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name": "drupal/amswap",
 | 
			
		||||
            "version": "2.0.0-beta2",
 | 
			
		||||
            "source": {
 | 
			
		||||
                "type": "git",
 | 
			
		||||
                "url": "https://git.drupal.org/project/amswap",
 | 
			
		||||
                "reference": "8.x-2.0-beta2"
 | 
			
		||||
            },
 | 
			
		||||
            "dist": {
 | 
			
		||||
                "type": "zip",
 | 
			
		||||
                "url": "https://ftp.drupal.org/files/projects/amswap-8.x-2.0-beta2.zip",
 | 
			
		||||
                "reference": "8.x-2.0-beta2",
 | 
			
		||||
                "shasum": "5ee4c7ddf6f0417112cd8875c5236540352dc408"
 | 
			
		||||
            },
 | 
			
		||||
            "require": {
 | 
			
		||||
                "drupal/core": "*"
 | 
			
		||||
            },
 | 
			
		||||
            "type": "drupal-module",
 | 
			
		||||
            "extra": {
 | 
			
		||||
                "branch-alias": {
 | 
			
		||||
                    "dev-2.x": "2.x-dev"
 | 
			
		||||
                },
 | 
			
		||||
                "drupal": {
 | 
			
		||||
                    "version": "8.x-2.0-beta2",
 | 
			
		||||
                    "datestamp": "1548515280",
 | 
			
		||||
                    "security-coverage": {
 | 
			
		||||
                        "status": "not-covered",
 | 
			
		||||
                        "message": "Project has not opted into security advisory coverage!"
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            },
 | 
			
		||||
            "notification-url": "https://packages.drupal.org/8/downloads",
 | 
			
		||||
            "license": [
 | 
			
		||||
                "GPL-2.0+"
 | 
			
		||||
            ],
 | 
			
		||||
            "authors": [
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "droces",
 | 
			
		||||
                    "homepage": "https://www.drupal.org/user/2996575"
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "description": "Allows the administration menu to be customised per user role.",
 | 
			
		||||
            "homepage": "https://www.drupal.org/project/amswap",
 | 
			
		||||
            "keywords": [
 | 
			
		||||
                "Drupal"
 | 
			
		||||
            ],
 | 
			
		||||
            "support": {
 | 
			
		||||
                "source": "http://cgit.drupalcode.org/amswap",
 | 
			
		||||
                "issues": "https://www.drupal.org/project/issues/amswap"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name": "drupal/audiofield",
 | 
			
		||||
            "version": "1.8.0",
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										9
									
								
								config/sync/amswap.amswapconfig.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								config/sync/amswap.amswapconfig.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
role_menu_pairs:
 | 
			
		||||
  -
 | 
			
		||||
    role: admin
 | 
			
		||||
    menu: editors
 | 
			
		||||
dependencies:
 | 
			
		||||
  module:
 | 
			
		||||
    - amswap
 | 
			
		||||
_core:
 | 
			
		||||
  default_config_hash: d7tn_kI_5tCvOXLD4Qa-_znks4jgfgCwsKda6GKH-vk
 | 
			
		||||
@@ -4,6 +4,7 @@ module:
 | 
			
		||||
  admin_toolbar: 0
 | 
			
		||||
  admin_toolbar_links_access_filter: 0
 | 
			
		||||
  advanced_text_formatter: 0
 | 
			
		||||
  amswap: 0
 | 
			
		||||
  audiofield: 0
 | 
			
		||||
  autocomplete_deluxe: 0
 | 
			
		||||
  autologout: 0
 | 
			
		||||
@@ -34,6 +35,7 @@ module:
 | 
			
		||||
  datetime_range: 0
 | 
			
		||||
  dynamic_page_cache: 0
 | 
			
		||||
  editor: 0
 | 
			
		||||
  editors_menus: 0
 | 
			
		||||
  email_registration: 0
 | 
			
		||||
  embed: 0
 | 
			
		||||
  entity: 0
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								config/sync/system.menu.editors.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								config/sync/system.menu.editors.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
uuid: 15d9ad1e-fea7-4cf6-a72e-c1a43fe3a702
 | 
			
		||||
langcode: und
 | 
			
		||||
status: true
 | 
			
		||||
dependencies: {  }
 | 
			
		||||
_core:
 | 
			
		||||
  default_config_hash: 0hxb-hNr7Eg_y0RtE7A9ShL8kGwEdJ4LTjbWcZTYKYk
 | 
			
		||||
id: editors
 | 
			
		||||
label: Editors
 | 
			
		||||
description: 'An admin menu for content editors (must be customized for each new project)'
 | 
			
		||||
locked: false
 | 
			
		||||
@@ -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