Skip to content

Commit

Permalink
Add 'core_version_requirement' key to info files
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-teck committed Oct 27, 2019
1 parent d1419a7 commit 02dc665
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/module/model.info.yml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ type: module
description: {{ description }}
package: {{ package }}
core: 8.x
core_version_requirement: ^8 || ^9
{% if dependencies %}
dependencies:
{% for dependency in dependencies %}
Expand Down
1 change: 1 addition & 0 deletions templates/yml/module-info/module-info.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ type: module
description: {{ description }}
package: {{ package }}
core: 8.x
core_version_requirement: ^8 || ^9
{% if dependencies %}
dependencies:
{% for dependency in dependencies %}
Expand Down
1 change: 1 addition & 0 deletions templates/yml/theme-info/theme-info.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ base theme: {{ base_theme }}
description: {{ description }}
package: {{ package }}
core: 8.x
core_version_requirement: ^8 || ^9
libraries:
- {{ machine_name }}/global
regions:
Expand Down
1 change: 1 addition & 0 deletions tests/dcg/Generator/Yml/_module_info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ type: module
description: Example description.
package: Custom
core: 8.x
core_version_requirement: ^8 || ^9
dependencies:
- views
- node
Expand Down
1 change: 1 addition & 0 deletions tests/dcg/Generator/Yml/_theme_info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ base theme: garland
description: Example description.
package: Custom
core: 8.x
core_version_requirement: ^8 || ^9
libraries:
- example/global
regions:
Expand Down
1 change: 1 addition & 0 deletions tests/dcg/Generator/_module/foo.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ type: module
description: Some description.
package: Custom
core: 8.x
core_version_requirement: ^8 || ^9
dependencies:
- drupal:views
1 change: 1 addition & 0 deletions tests/dcg/Generator/_theme/foo.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ base theme: bartik
description: Some description.
package: Custom
core: 8.x
core_version_requirement: ^8 || ^9
libraries:
- foo/global
regions:
Expand Down

0 comments on commit 02dc665

Please sign in to comment.