added action link add auteur

This commit is contained in:
2021-04-13 15:15:37 +02:00
parent 88a5824040
commit 2ade231d57
7 changed files with 252 additions and 0 deletions
+1
View File
@@ -42,6 +42,7 @@ module:
domain_site_settings: 0
dynamic_page_cache: 0
editor: 0
editors_menus: 0
email_registration: 0
embed: 0
enfrancais_graphql: 0
+10
View File
@@ -0,0 +1,10 @@
uuid: 5f84f308-9b8d-459c-98af-1b5158ca03af
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
@@ -0,0 +1,6 @@
name: 'Editors Menus'
type: module
description: 'create editors admin menus through module as they will be exportable as config'
core: 8.x
core_version_requirement: ^8 || ^9
package: 'Custom'
@@ -0,0 +1,93 @@
# editors_menus.material_add:
# route_name: node.add
# route_parameters:
# node_type: 'materiau'
# title: 'Add Material'
# appears_on:
# - view.admin_nodes.page_1
#
# editors_menus.article_add:
# route_name: node.add
# route_parameters:
# node_type: 'article'
# title: 'Add Article'
# appears_on:
# - view.admin_nodes.page_2
#
# editors_menus.thematique_add:
# route_name: node.add
# route_parameters:
# node_type: 'thematique'
# title: 'Add Thematique'
# appears_on:
# - view.admin_nodes.page_3
editors_menus.auteur_add:
route_name: entity.taxonomy_term.add_form
route_parameters:
taxonomy_vocabulary: 'auteurs'
title: 'Add Auteur'
appears_on:
- view.admin_taxo.page_1
# editors_menus.showroom_add:
# route_name: entity.taxonomy_term.add_form
# route_parameters:
# taxonomy_vocabulary: 'showroom'
# title: 'Add Showroom'
# appears_on:
# - view.admin_taxo.page_2
#
# editors_menus.thesaurus_add:
# route_name: entity.taxonomy_term.add_form
# route_parameters:
# taxonomy_vocabulary: 'thesaurus'
# title: 'Add Thesaurus'
# appears_on:
# - view.admin_taxo.page_3
#
# editors_menus.tag_add:
# route_name: entity.taxonomy_term.add_form
# route_parameters:
# taxonomy_vocabulary: 'tags'
# title: 'Add Tag'
# appears_on:
# - view.admin_taxo.page_4
#
# editors_menus.assisted_research_add:
# route_name: entity.taxonomy_term.add_form
# route_parameters:
# taxonomy_vocabulary: 'assisted_research'
# title: 'Add Assisted Research List'
# appears_on:
# - view.admin_taxo.page_5
#
# editors_menus.user_add:
# route_name: user.admin_create
# title: 'Add User'
# appears_on:
# - view.admin_users.page_1
# editors_menus.simplenews_daily_add:
# route_name: node.add
# route_parameters:
# node_type: 'simplenews_issue'
# title: 'Add Daily'
# appears_on:
# - view.simplenews_newsletters.page_1
#
# editors_menus.simplenews_newsletter_add:
# route_name: node.add
# route_parameters:
# node_type: 'simplenews_issue'
# title: 'Add Newletter'
# appears_on:
# - view.simplenews_newsletters.page_1
#
# editors_menus.simplenews_companies_add:
# route_name: node.add
# route_parameters:
# node_type: 'simplenews_issue'
# title: 'Add Companies mailing'
# appears_on:
# - view.simplenews_newsletters.page_1
@@ -0,0 +1,111 @@
editors_menus.contents:
title: Contents
description: ''
parent: editors
route_name: view.admin_nodes.page_1
menu_name: editors
weight: 0
editors_menus.materials:
title: Materials
description: ''
parent: editors_menus.contents
route_name: view.admin_nodes.page_1
menu_name: editors
weight: 0
editors_menus.articles:
title: Articles
description: ''
parent: editors_menus.contents
route_name: view.admin_nodes.page_2
menu_name: editors
weight: 2
editors_menus.thesaurus:
title: Thesaurus
description: ''
parent: editors_menus.contents
route_name: view.admin_taxo.page_3
menu_name: editors
weight: 3
editors_menus.tags:
title: Tags
description: ''
parent: editors_menus.contents
route_name: view.admin_taxo.page_4
menu_name: editors
weight: 4
editors_menus.assisted_research:
title: Assisted Research
description: ''
parent: editors_menus.contents
route_name: view.admin_taxo.page_5
menu_name: editors
weight: 5
editors_menus.companies:
title: Companies
description: ''
parent: editors_menus.contents
route_name: view.admin_taxo.page_1
menu_name: editors
weight: 6
editors_menus.showrooms:
title: Showrooms
description: ''
parent: editors_menus.contents
route_name: view.admin_taxo.page_2
menu_name: editors
weight: 7
editors_menus.newsletters:
title: Newsletters
description: ''
parent: editors_menus.contents
route_name: view.simplenews_newsletters.page_1
menu_name: editors
weight: 8
editors_menus.users:
title: Users
description: ''
parent: editors
route_name: view.admin_users.page_1
menu_name: editors
weight: 1
editors_menus.subscribers:
title: Simplenews Subscribers
description: ''
parent: editors_menus.users
route_name: view.simplenews_subscribers.page_1
menu_name: editors
weight: 2
editors_menus.commerce:
title: Commerce
description: ''
parent: editors
route_name: entity.commerce_order.collection
menu_name: editors
weight: 2
editors_menus.commerce_orders:
title: Orders
description: ''
parent: editors_menus.commerce
route_name: entity.commerce_order.collection
menu_name: editors
weight: 0
editors_menus.commerce_license:
title: Licenses
description: ''
parent: editors_menus.commerce
route_name: entity.commerce_license.collection
menu_name: editors
weight: 1
@@ -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:
}
}