default services conflit ?
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
{{ machine_name }}.extra_small:
|
||||
label: mobile
|
||||
mediaQuery: ''
|
||||
weight: 0
|
||||
multipliers:
|
||||
- 1x
|
||||
{{ machine_name }}.small:
|
||||
label: mobile
|
||||
mediaQuery: 'all and (min-width: 576px) and (max-width: 767px)'
|
||||
weight: 1
|
||||
multipliers:
|
||||
- 1x
|
||||
{{ machine_name }}.medium:
|
||||
label: narrow
|
||||
mediaQuery: 'all and (min-width: 768px) and (max-width: 991px)'
|
||||
weight: 2
|
||||
multipliers:
|
||||
- 1x
|
||||
{{ machine_name }}.large:
|
||||
label: wide
|
||||
mediaQuery: 'all and (min-width: 992px) and (max-width: 1199px)'
|
||||
weight: 3
|
||||
multipliers:
|
||||
- 1x
|
||||
{{ machine_name }}.extra_large:
|
||||
label: wide
|
||||
mediaQuery: 'all and (min-width: 1200px)'
|
||||
weight: 4
|
||||
multipliers:
|
||||
- 1x
|
@@ -0,0 +1,10 @@
|
||||
{{ machine_name }}.add_article:
|
||||
route_name: node.add
|
||||
route_parameters:
|
||||
node_type: article
|
||||
options:
|
||||
attributes: {target: _blank}
|
||||
title: Add article
|
||||
weight: 10
|
||||
appears_on:
|
||||
- system.admin_content
|
@@ -0,0 +1,12 @@
|
||||
{{ machine_name }}.edit_block:
|
||||
title: Edit this block
|
||||
route_name: entity.block.edit_form
|
||||
group: block
|
||||
{{ machine_name }}.view_node:
|
||||
title: Edit this node
|
||||
route_name: entity.node.edit_form
|
||||
group: node
|
||||
{{ machine_name }}.edit_view:
|
||||
title: Edit this view
|
||||
route_name: entity.view.edit_form
|
||||
group: entity.view.edit_form
|
@@ -0,0 +1,34 @@
|
||||
# Simple link.
|
||||
{{ machine_name }}.node_add:
|
||||
title: Add content
|
||||
description: Add new content.
|
||||
menu_name: main
|
||||
route_name: node.add_page
|
||||
weight: 10
|
||||
|
||||
# Child link.
|
||||
{{ machine_name }}.node_add_article:
|
||||
title: Add article
|
||||
menu_name: main
|
||||
parent: {{ machine_name }}.node_add
|
||||
route_name: node.add
|
||||
route_parameters:
|
||||
node_type: article
|
||||
weight: 20
|
||||
|
||||
# Dynamic link.
|
||||
{{ machine_name }}.user:
|
||||
menu_name: main
|
||||
class: Drupal\user\Plugin\Menu\LoginLogoutMenuLink
|
||||
weight: 30
|
||||
|
||||
# External link.
|
||||
{{ machine_name }}.drupal.org:
|
||||
title: Drupal.org
|
||||
description: Drupal is an open source platform for building amazing digital experiences.
|
||||
url: https://www.drupal.org
|
||||
menu_name: main
|
||||
weight: 40
|
||||
options:
|
||||
attributes:
|
||||
target: _blank
|
@@ -0,0 +1,23 @@
|
||||
{{ machine_name }}.foo:
|
||||
title: Foo
|
||||
route_name: example.foo
|
||||
base_route: example.foo
|
||||
{{ machine_name }}.foo_1:
|
||||
title: Foo 1
|
||||
route_name: example.foo_1
|
||||
base_route: example.foo_1
|
||||
parent_id: example.foo
|
||||
{{ machine_name }}.foo_2:
|
||||
title: Foo 2
|
||||
route_name: example.foo_2
|
||||
base_route: example.foo_2
|
||||
parent_id: example.foo
|
||||
{{ machine_name }}.foo_3:
|
||||
title: Foo 3
|
||||
route_name: example.foo_3
|
||||
base_route: example.foo_3
|
||||
parent_id: example.foo
|
||||
{{ machine_name }}.bar:
|
||||
title: bar
|
||||
route_name: example.bar
|
||||
base_route: example.foo
|
@@ -0,0 +1,15 @@
|
||||
name: {{ name }}
|
||||
type: module
|
||||
description: {{ description }}
|
||||
package: {{ package }}
|
||||
core: 8.x
|
||||
core_version_requirement: ^8 || ^9
|
||||
{% if dependencies %}
|
||||
dependencies:
|
||||
{% for dependency in dependencies %}
|
||||
- {{ dependency }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if configure %}
|
||||
configure: {{ configure }}
|
||||
{% endif %}
|
@@ -0,0 +1,37 @@
|
||||
# Custom module library for general purposes.
|
||||
{{ machine_name }}:
|
||||
js:
|
||||
js/{{ machine_name|u2h }}.js: {}
|
||||
css:
|
||||
component:
|
||||
css/{{ machine_name|u2h }}.css: {}
|
||||
dependencies:
|
||||
- core/drupalSettings
|
||||
- {{ machine_name }}/jquery-labelauty
|
||||
|
||||
# Third-party library (self hosted).
|
||||
jquery-labelauty:
|
||||
remote: https://github.com/fntneves/jquery-labelauty
|
||||
version: 1.1.0
|
||||
license:
|
||||
name: MIT
|
||||
url: https://github.com/fntneves/jquery-labelauty/blob/v1.1.0/LICENSE
|
||||
gpl-compatible: true
|
||||
js:
|
||||
/libraries/jquery-labelauty/source/jquery-labelauty.js: {}
|
||||
css:
|
||||
component:
|
||||
/libraries/jquery-labelauty/source/jquery-labelauty.css: {}
|
||||
dependencies:
|
||||
- core/jquery
|
||||
|
||||
# Third-party library (CDN).
|
||||
vuejs:
|
||||
remote: https://vuejs.org
|
||||
version: 2.0.5
|
||||
license:
|
||||
name: MIT
|
||||
url: https://github.com/vuejs/vue/blob/dev/LICENSE
|
||||
gpl-compatible: true
|
||||
js:
|
||||
https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.4/vue.min.js: {type: external, minified: true}
|
@@ -0,0 +1,4 @@
|
||||
administer {{ machine_name }} configuration:
|
||||
title: 'Administer {{ machine_name }} configuration'
|
||||
description: 'Optional description.'
|
||||
restrict access: true
|
@@ -0,0 +1,14 @@
|
||||
{{ machine_name }}.reports:
|
||||
path: '/admin/reports/{{ machine_name }}'
|
||||
defaults:
|
||||
_controller: '\Drupal\{{ machine_name }}\Controller\{{ class }}::build'
|
||||
_title: '{{ name }} report'
|
||||
requirements:
|
||||
_permission: 'access site reports'
|
||||
{{ machine_name }}.settings:
|
||||
path: '/admin/config/{{ machine_name }}/settings'
|
||||
defaults:
|
||||
_form: 'Drupal\{{ machine_name }}\Form\SettingsForm'
|
||||
_title: '{{ name }} settings'
|
||||
requirements:
|
||||
_permission: 'administer {{ machine_name }} configuration'
|
@@ -0,0 +1,13 @@
|
||||
services:
|
||||
{{ machine_name }}.example:
|
||||
class: Drupal\{{ machine_name }}\{{ class }}Example
|
||||
arguments: ['@entity_type.manager']
|
||||
{{ machine_name }}.middleware:
|
||||
class: Drupal\{{ machine_name }}\{{ class }}Middleware
|
||||
tags:
|
||||
- { name: http_middleware, priority: 10 }
|
||||
{{ machine_name }}.event_subscriber:
|
||||
class: Drupal\{{ machine_name }}\EventSubscriber\{{ class }}Subscriber
|
||||
arguments: ['@current_user']
|
||||
tags:
|
||||
- { name: event_subscriber }
|
@@ -0,0 +1,21 @@
|
||||
name: {{ name }}
|
||||
type: theme
|
||||
base theme: {{ base_theme }}
|
||||
description: {{ description }}
|
||||
package: {{ package }}
|
||||
core: 8.x
|
||||
core_version_requirement: ^8 || ^9
|
||||
libraries:
|
||||
- {{ machine_name }}/global
|
||||
regions:
|
||||
header: 'Header'
|
||||
primary_menu: 'Primary menu'
|
||||
secondary_menu: 'Secondary menu'
|
||||
page_top: 'Page top'
|
||||
page_bottom: 'Page bottom'
|
||||
featured: 'Featured'
|
||||
breadcrumb: 'Breadcrumb'
|
||||
content: 'Content'
|
||||
sidebar_first: 'Sidebar first'
|
||||
sidebar_second: 'Sidebar second'
|
||||
footer: 'Footer'
|
@@ -0,0 +1,24 @@
|
||||
# Main theme library.
|
||||
global:
|
||||
js:
|
||||
js/{{ machine_name|u2h }}.js: {}
|
||||
css:
|
||||
base:
|
||||
css/base/elements.css: {}
|
||||
component:
|
||||
css/components/block.css: {}
|
||||
css/components/breadcrumb.css: {}
|
||||
css/components/field.css: {}
|
||||
css/components/form.css: {}
|
||||
css/components/header.css: {}
|
||||
css/components/menu.css: {}
|
||||
css/components/messages.css: {}
|
||||
css/components/node.css: {}
|
||||
css/components/sidebar.css: {}
|
||||
css/components/table.css: {}
|
||||
css/components/tabs.css: {}
|
||||
css/components/buttons.css: {}
|
||||
layout:
|
||||
css/layouts/layout.css: {}
|
||||
theme:
|
||||
css/theme/print.css: { media: print }
|
Reference in New Issue
Block a user