Skip to content

Commit 6f7896c

Browse files
piggitodavidferlay
authored andcommitted
Upgrade Drupal core to v9
1 parent 77677c5 commit 6f7896c

File tree

5 files changed

+53
-38
lines changed

5 files changed

+53
-38
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ vendor
33
web/*.*
44
web/core/
55
web/libraries/
6+
web/modules/*.*
67
web/modules/contrib/
8+
web/themes/*.*
79
web/themes/contrib/
10+
web/profiles/*.*
811
web/profiles/contrib/config_installer/
912
web/sites/
1013

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ else
7575
@echo "Installing composer dependencies, without dev ones"
7676
$(call php, composer install --prefer-dist -o --no-dev)
7777
endif
78-
$(call php, composer drupal-scaffold)
7978
$(call php, composer create-required-files)
8079

8180
TESTER_NAME = tester

composer.json

Lines changed: 48 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,40 @@
1616
}
1717
],
1818
"require": {
19-
"composer/installers": "^1.2",
19+
"composer/installers": "^1.9",
2020
"cweagans/composer-patches": "^1.6.5",
21-
"drupal-composer/drupal-scaffold": "^2.6",
2221
"drupal/better_normalizers": "^1.0@beta",
23-
"drupal/block_content_permissions": "^1.8",
24-
"drupal/core-recommended": "^8.9",
25-
"drupal/core-vendor-hardening": "^8.9",
22+
"drupal/block_content_permissions": "1.x-dev",
23+
"drupal/core-composer-scaffold": "^9.0",
24+
"drupal/core-project-message": "^9.0",
25+
"drupal/core-recommended": "^9",
26+
"drupal/core-vendor-hardening": "^9.0",
2627
"drupal/default_content": "^1",
27-
"drupal/file_entity": "^2",
28-
"drupal/focal_point": "^1.2",
28+
"drupal/file_entity": "2.x-dev",
29+
"drupal/focal_point": "^1.4",
2930
"drupal/google_tag": "^1.2",
30-
"drupal/honeypot": "^1.30",
31+
"drupal/honeypot": "^2",
3132
"drupal/layout_builder_modal": "^1.1",
3233
"drupal/layout_builder_restrictions": "^2.7",
3334
"drupal/layout_library": "^1.0@beta",
34-
"drupal/lb_ux": "^1.0@beta",
35+
"drupal/lb_ux": "1.x-dev",
3536
"drupal/manage_display": "^1.0@alpha",
36-
"drupal/menu_admin_per_menu": "^1.0",
37-
"drupal/menu_link_attributes": "^1.0",
38-
"drupal/page_manager": "4.x-dev",
39-
"drupal/panels_everywhere": "^4.0@beta",
40-
"drupal/paragraphs": "^1.9",
41-
"drupal/pathauto": "^1.6",
42-
"drupal/rabbit_hole": "^1.0@beta",
43-
"drupal/redirect": "^1.4",
44-
"drupal/svg_image": "^1.10",
45-
"drupal/swiftmailer": "^1",
46-
"drupal/telephone_validation": "^2.2",
37+
"drupal/menu_admin_per_menu": "^1.1",
38+
"drupal/menu_link_attributes": "1.x-dev",
39+
"drupal/page_manager": "^4.0.0-beta6",
40+
"drupal/panels": "^4.6",
41+
"drupal/panels_everywhere": "4.x-dev",
42+
"drupal/paragraphs": "^1.11",
43+
"drupal/pathauto": "^1.8",
44+
"drupal/rabbit_hole": "^1.0.0-beta7",
45+
"drupal/redirect": "^1.6",
46+
"drupal/svg_image": "^1.14",
47+
"drupal/swiftmailer": "^2",
48+
"drupal/telephone_validation": "^2.3",
4749
"drupal/token": "^1",
48-
"drupal/username_enumeration_prevention": "^1.0",
49-
"drupal/views_bulk_edit": "^2.3",
50-
"drupal/webform": "^5.4",
50+
"drupal/username_enumeration_prevention": "^1.1",
51+
"drupal/views_bulk_edit": "2.x-dev",
52+
"drupal/webform": "^6",
5153
"drush/drush": "^10.1.0",
5254
"skilldlabs/drupal-cleanup": "^1",
5355
"zaporylie/composer-drupal-optimizations": "^1.0"
@@ -56,7 +58,7 @@
5658
"dmore/behat-chrome-extension": "^1.3",
5759
"drupal/config_inspector": "^1",
5860
"drupal/devel": "3.x-dev",
59-
"drupal/drupal-extension": "^3.4",
61+
"drupal/drupal-extension": "^4",
6062
"drupal/upgrade_status": "^2.6",
6163
"espend/behat-placeholder-extension": "^1.1",
6264
"genesis/behat-fail-aid": "^2.1",
@@ -68,15 +70,19 @@
6870
"minimum-stability": "dev",
6971
"prefer-stable": true,
7072
"config": {
71-
"sort-packages": true
73+
"sort-packages": true,
74+
"preferred-install": {
75+
"drupal/lb_ux": "source",
76+
"drupal/panels_everywhere": "source",
77+
"*": "dist"
78+
}
7279
},
7380
"autoload": {
7481
"classmap": [
7582
"scripts/composer/ScriptHandler.php"
7683
]
7784
},
7885
"scripts": {
79-
"drupal-scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold",
8086
"create-required-files": "SkilldDrupal\\composer\\ScriptHandler::createRequiredFiles",
8187
"list-scaffold-files": [
8288
"SkilldDrupal\\composer\\ScriptHandler::listScaffoldFiles"
@@ -95,7 +101,7 @@
95101
"web/modules/contrib/{$name}": ["type:drupal-module"],
96102
"web/profiles/contrib/{$name}": ["type:drupal-profile"],
97103
"web/themes/contrib/{$name}": ["type:drupal-theme"],
98-
"drush/contrib/{$name}": ["type:drupal-drush"]
104+
"drush/Commands/contrib/{$name}": ["type:drupal-drush"]
99105
},
100106
"drupal-scaffold": {
101107
"locations": {
@@ -124,7 +130,7 @@
124130
},
125131
"patches": {
126132
"drupal/core": {
127-
"Setting required on radios marks all options required": "https://www.drupal.org/files/issues/2019-07-30/2731991-42.patch",
133+
"Setting required on radios marks all options required": "https://www.drupal.org/files/issues/2020-05-26/2731991-50.patch",
128134
"Translated field denormalization creates duplicate values": "https://www.drupal.org/files/issues/2019-07-02/2904423-core_8_8-72.patch",
129135
"Fix multilingual site's layout edit context issue": "https://www.drupal.org/files/issues/2019-12-19/3101231-19.patch",
130136
"SQLite database locking errors cause fatal errors": "https://www.drupal.org/files/issues/1120020-59.patch",
@@ -140,21 +146,28 @@
140146
"drush/drush": {
141147
"Import multiple custom translation po files": "https://patch-diff.githubusercontent.com/raw/drush-ops/drush/pull/4251.patch"
142148
},
143-
"drupal/lb_ux": {
144-
"Cog icon not showing when Preview disabled": "https://www.drupal.org/files/issues/2020-05-22/3116402-8.patch",
145-
"Errors when using with modules that alter a section's contextual menu": "https://www.drupal.org/files/issues/2020-05-22/3106939-4.patch"
149+
"drupal/block_content_permissions": {
150+
"Allow accessing the Custom block library page without Administer blocks permission": "https://www.drupal.org/files/issues/2020-06-05/block_content_permissions-access_listing_page-2920739-31.patch"
146151
},
147152
"drupal/default_content": {
148153
"Do not reimport existing entities": "https://www.drupal.org/files/issues/do_not_reimport-2698425-56.patch"
149154
},
150-
"drupal/block_content_permissions": {
151-
"Allow accessing the Custom block library page without Administer blocks permission": "https://www.drupal.org/files/issues/2019-06-20/block_content_permissions-access_listing_page-2920739-23.patch"
155+
"drupal/focal_point": {
156+
"Integrate focal point with media_library": "https://www.drupal.org/files/issues/2019-12-11/focal_point-compatibility-with-media-libary-3094478-2.patch"
157+
},
158+
"drupal/lb_ux": {
159+
"Cog icon not showing when Preview disabled": "https://www.drupal.org/files/issues/2020-05-22/3116402-8.patch",
160+
"Errors when using with modules that alter a section's contextual menu": "https://www.drupal.org/files/issues/2020-05-22/3106939-4.patch",
161+
"Indicate Drupal 8/9 compatibility via core_version_requirement": "https://www.drupal.org/files/issues/2020-05-22/d9_compatibility-3138698-4.patch"
162+
},
163+
"drupal/manage_display": {
164+
"Drupal 9 compatibility": "https://www.drupal.org/files/issues/2020-04-01/manage_display.d9.3124061-2.patch"
152165
},
153166
"drupal/menu_link_attributes": {
154167
"Add missing schema for menu_link_attributes": "https://patch-diff.githubusercontent.com/raw/yannickoo/menu_link_attributes/pull/52.patch"
155168
},
156-
"drupal/focal_point": {
157-
"Integrate focal point with media_library": "https://www.drupal.org/files/issues/2019-12-11/focal_point-compatibility-with-media-libary-3094478-2.patch"
169+
"drupal/panels_everywhere": {
170+
"Drupal 9 compatibility fixes for Panels Everywhere": "https://www.drupal.org/files/issues/2020-05-14/d9-compatibility-3111407-7.patch"
158171
}
159172
}
160173
}

scripts/makefile/tests.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ endif
5959
## Validate composer.json file
6060
compval:
6161
@echo "Composer.json validation..."
62-
# Add --strict back when page_manager includes https://www.drupal.org/project/page_manager/issues/2960739 in next release.
62+
# Can't use --strict cause we need dev versions for d9 compatibility
6363
@docker run --rm -v `pwd`:`pwd` -w `pwd` $(IMAGE_PHP) composer validate
6464

6565
## Validate hook_update_N()

web/modules/custom/project_default_content/project_default_content.info.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Creates default content fixtures for the project. This module comes
33
package: Custom
44

55
type: module
6-
core: 8.x
6+
core_version_requirement: ^8.7.7 || ^9
77

88
dependencies:
99
- default_content:default_content

0 commit comments

Comments
 (0)