Skip to content

Commit 02dc665

Browse files
committed
Add 'core_version_requirement' key to info files
1 parent d1419a7 commit 02dc665

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

templates/module/model.info.yml.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ type: module
33
description: {{ description }}
44
package: {{ package }}
55
core: 8.x
6+
core_version_requirement: ^8 || ^9
67
{% if dependencies %}
78
dependencies:
89
{% for dependency in dependencies %}

templates/yml/module-info/module-info.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ type: module
33
description: {{ description }}
44
package: {{ package }}
55
core: 8.x
6+
core_version_requirement: ^8 || ^9
67
{% if dependencies %}
78
dependencies:
89
{% for dependency in dependencies %}

templates/yml/theme-info/theme-info.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ base theme: {{ base_theme }}
44
description: {{ description }}
55
package: {{ package }}
66
core: 8.x
7+
core_version_requirement: ^8 || ^9
78
libraries:
89
- {{ machine_name }}/global
910
regions:

tests/dcg/Generator/Yml/_module_info.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ type: module
33
description: Example description.
44
package: Custom
55
core: 8.x
6+
core_version_requirement: ^8 || ^9
67
dependencies:
78
- views
89
- node

tests/dcg/Generator/Yml/_theme_info.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ base theme: garland
44
description: Example description.
55
package: Custom
66
core: 8.x
7+
core_version_requirement: ^8 || ^9
78
libraries:
89
- example/global
910
regions:

tests/dcg/Generator/_module/foo.info.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ type: module
33
description: Some description.
44
package: Custom
55
core: 8.x
6+
core_version_requirement: ^8 || ^9
67
dependencies:
78
- drupal:views

tests/dcg/Generator/_theme/foo.info.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ base theme: bartik
44
description: Some description.
55
package: Custom
66
core: 8.x
7+
core_version_requirement: ^8 || ^9
78
libraries:
89
- foo/global
910
regions:

0 commit comments

Comments
 (0)