You can then specify your custom modules are compatible with Drupal 10 and above. protected function setUp(): void, and test $modules visibility should be protected (i.e. Test setUp() methods need a void return type (i.e.The jquery dependency on once has been removed and is now core/once.->accessCheck() must now be specified on all content entity queries. ![]() If you're uncomfortable with the command line, the Upgrade Status module should help. It's a great idea to run this on your CI environment to catch deprecations as they're added. Using Matt Glaman's excellent phpstan-drupal will ensure your custom code isn't using any deprecated code. Matt Glaman's composer-drupal-lenient is a useful tool that lets you use Drupal 9 compatible modules, then use cweagans/composer-patches to patch them to add Drupal 10 compatibility. Handling contrib modules that aren't readyĬontrib modules that aren't yet compatible with Drupal 10 will need special handling. Helping to get contrib modules ready for Drupal 10 is also a great opportunity to contribute to Drupal. In preparation for Drupal 10 an easy way to see which modules and their dependencies will hold you back is to use: composer why-not drupal/core ^10Īn alternative to this is to use Acquia's Drupal 10 Deprecation Status site or the Upgrade Status module. Make sure all contributed modules are on their latest Drupal 9 compatible releases. Upgrade Drupal core to 9.5Įnsuring you're on the latest Drupal 9 core release (currently 9.5.5) before updating to 10 will help smooth the process. You'll need to take a few steps to prepare your site before the Drupal 10 upgrade. Under the hood, Drupal 10 has bumped to Symfony 6.2, Guzzle 7.5, and Twig 3, among many others.Īdditionally, Drupal 10 requires Drush 11 or later. You should make these platform updates before starting the Drupal 10 upgrade. However, it does include some new features. Like the jump from Drupal 8 to Drupal 9, there is no need to rebuild and migrate your data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |