Drupal 10 readiness

Created on 26 June 2023, over 1 year ago
Updated 27 June 2023, over 1 year ago

Problem/Motivation

The automated Drupal 10 compatibility patch from the bot seemed not enough ( https://www.drupal.org/project/popup_message/issues/3289114 📌 Automated Drupal 10 compatibility fixes Needs work ). We need to replace deprecated classes with current ones:

  • core/lib/Drupal/Core/Asset/CssCollectionOptimizer.php replace with \Drupal\Core\Asset\CssCollectionOptimizerLazy.
  • core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php replace with \Drupal\Core\Asset\JsCollectionOptimizerLazy

Another issue is that the jquery.cookie dependency is removed from core and need to be replaced with core/js-cookie. We need to update module's libraries dependencies list and js code to use js-cookie.

Additionally the constant FILE_STATUS_PERMANENT is deprecated. W need to replace its usage with \Drupal\file\FileInterface::STATUS_PERMANENT and to check the status of a file, we need to use \Drupal\file\FileInterface::isPermanent() or \Drupal\file\FileInterface::isTemporary().

📌 Task
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇵🇱Poland Marcin Dębicki Poland, Goleniów

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024