Change the code to avoid using functions, methods, constants, and services that have been deprecated in Drupal 9 and removed from Drupal 10

Created on 31 October 2023, over 1 year ago
Updated 8 November 2023, over 1 year ago

The module uses some functions and constants which have been deprecated in Drupal 8/9 and removed in Drupal 10.

  • drupal_get_path() has been deprecated in Drupal 9.3 and removed from Drupal 10. \Drupal\Core\Extension\ExtensionPathResolver::getPath() must be instead used.
  • drupal_get_filename() has been deprecated in Drupal 9.3 and removed from Drupal 10. \Drupal\Core\Extension\ExtensionPathResolver::getPathname() must be instead used.
  • file_create_url() has been deprecated in Drupal 9.3 and removed from Drupal 10. \Drupal\Core\File\FileUrlGeneratorInterface::generateAbsoluteString() must be instead used.
  • file_load() has been deprecated in Drupal 8 and removed from Drupal 9. \Drupal\file\Entity\File::load() must be instead used.
  • FILE_STATUS_PERMANENT has been deprecated in Drupal 9.3 and removed from Drupal 10. \Drupal\file\FileInterface::setPermanent() must be instead used.
📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India chetan 11

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

Comments & Activities

Production build 0.71.5 2024