Drupal 10 Redieness

Created on 20 November 2023, about 1 year ago

Problem/Motivation

I'm preparing a site for Drupal 10 now that support for Drupal 9 has ended. The following issues must first be resolved.

Steps to reproduce

Install the Upgrade Status module and scan this module.

Proposed resolution

Scanned on Mon, 11/20/2023 - 09:21 am.

3 errors found. Avoid some manual work by using drupal-rector for fixing issues
automatically or Upgrade Rector to generate patches.

No automatic upgrade path, all ads from Drupal 7 should be migrated manually or
by writing custom migration scripts.

modules/contrib/SimpleAds/simpleads.install:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Fix with │ 279 │ Call to deprecated function drupal_get_path(). Deprecated in │
│ rector │ │ drupal:9.3.0 and is removed from drupal:10.0.0. Use │
│ │ │ Drupal\Core\Extension\ExtensionPathResolver::getPath() │
│ │ │ instead. │
│ │ │ │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘

modules/contrib/SimpleAds/src/Entity/Advertisement.php:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Fix with │ 396 │ Call to deprecated function file_create_url(). Deprecated in │
│ rector │ │ drupal:9.3.0 and is removed from drupal:10.0.0. Use the │
│ │ │ appropriate method on │
│ │ │ \Drupal\Core\File\FileUrlGeneratorInterface instead. │
│ │ │ │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘

modules/contrib/SimpleAds/src/Plugin/Field/FieldFormatter/SimpleAdsFormatter.php:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Fix with │ 72 │ Call to deprecated function file_create_url(). Deprecated in │
│ rector │ │ drupal:9.3.0 and is removed from drupal:10.0.0. Use the │
│ │ │ appropriate method on │
│ │ │ \Drupal\Core\File\FileUrlGeneratorInterface instead. │
│ │ │ │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘

Change Records

drupal_get_path() and drupal_get_filename() have been deprecated in favor of extension listing services

https://www.drupal.org/node/2940438

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States joshuautley

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

Comments & Activities

Production build 0.71.5 2024