Skip to content

Commit

Permalink
Issue 3672 yml template quoted values (#3679)
Browse files Browse the repository at this point in the history
* Add validator of HTTP methods. Move list of http methods to separate method and add settings for it. Change twig template to generate the methods based on HTTP methods accrodingly

* Add quotes for values in YAML templates where theoretically we can have the wrong data
  • Loading branch information
LOBsTerr authored and jmolivas committed Jan 11, 2018
1 parent f08a2fa commit ec179ed
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions templates/module/info.yml.twig
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: {{ module }}
name: '{{ module }}''
type: {{ type }}
description: {{ description }}
description: '{{ description }}''
core: {{ core }}
package: {{ package }}
package: '{{ package }}'
{% if dependencies %}
dependencies:
{% for dependency in dependencies %}
Expand Down
2 changes: 1 addition & 1 deletion templates/module/links.menu-entity-content.yml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ entity.{{ entity_name }}.collection:
{# Note: a content entity with bundles will have the settings configured on the bundle (config) entity. #}
{% if not bundle_entity_type %}
{{ entity_name }}.admin.structure.settings:
title: {{ label }} settings
title: '{{ label }} settings'
description: 'Configure {{ label }} entities'
route_name: {{ entity_name }}.settings
parent: system.admin_structure
Expand Down
2 changes: 1 addition & 1 deletion templates/module/src/Entity/Bundle/node.type.yml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ third_party_settings:
available_menus:
- main
parent: 'main:'
name: {{ bundle_title }}
name: '{{ bundle_title }}'
type: {{ bundle_name }}
description: 'Generated by Drupal Console'
help: ''
Expand Down
8 changes: 4 additions & 4 deletions templates/profile/info.yml.twig
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: {{ profile }}
type: {{ type }}
description: {{ description }}
description: '{{ description }}'
core: {{ core }}
{% if distribution %}

distribution:
name: {{ distribution }}
name: '{{ distribution }}'
{% endif %}
{% if dependencies %}

dependencies:
{% for dependency in dependencies %}
- {{ dependency }}
- '{{ dependency }}'
{% endfor %}
{% endif %}
{% if themes %}

themes:
{% for theme in themes %}
- {{ theme }}
- '{{ theme }}'
{% endfor %}
{% endif %}
4 changes: 2 additions & 2 deletions templates/theme/breakpoints.yml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{ machine_name }}.{{ breakpoint.breakpoint_name }}:
label: {{ breakpoint.breakpoint_label }}
mediaQuery: '{{ breakpoint.breakpoint_media_query }}'
weight: {{ breakpoint.breakpoint_weight }}
weight: '{{ breakpoint.breakpoint_weight }}'
multipliers:
- {{ breakpoint.breakpoint_multipliers }}
- '{{ breakpoint.breakpoint_multipliers }}'
{% endfor %}
2 changes: 1 addition & 1 deletion templates/theme/info.yml.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: {{ theme }}
type: {{ type }}
description: {{ description }}
description: '{{ description }}'
package: {{ package }}
core: {{ core }}
libraries:
Expand Down

0 comments on commit ec179ed

Please sign in to comment.