Update module for deprecations in 9.3.x

Created on 19 November 2021, almost 3 years ago
Updated 28 February 2023, over 1 year ago

Problem/Motivation

This module contains calls to code that is deprecated in Drupal 9.3.x.

Proposed resolution

Use undeprecated code. Note that using this code will make the module rely on 9.3.x so probably best to hold off merging this for a while. This issue can be viewed as part of the D10 preparations.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡ΏNew Zealand jweowu

    composer.json should specify that 9.3 is the minimum supported version, no?

  • After this update I've got an error 500 as the service doesn't exist pre 9.3.
    There should be some check before the service call, something like:

    if ((float) \Drupal::VERSION < 9.3) {
                $file = file_save_data('', $destination, FileSystemInterface::EXISTS_REPLACE);
              }
              else {
                $file = \Drupal::service('file.repository')->writeData('', $destination, FileSystemInterface::EXISTS_REPLACE);
              }
    

    or atleast as @jweowu mentioned, the minimum supported version specified.

Production build 0.71.5 2024