Drupal 11.2.x compatiblity

Created on 24 January 2025, about 1 month ago

Problem/Motivation

In πŸ“Œ Make CI green again Active we had to disable testing on 11.2.x branch by commenting out the OPT_IN_TEST_NEXT_MINOR in .gitlab-ci.yml due to two deprecations detected by phpstan here:

https://git.drupalcode.org/issue/svg_image_field-3501734/-/jobs/4109765

 ------ ----------------------------------------------------------------------- 
  Line   svg_image_field.views.inc                                              
 ------ ----------------------------------------------------------------------- 
  19     Call to deprecated function views_field_default_views_data():          
         in drupal:11.2.0 and is removed from drupal:12.0.0. Use                
         \Drupal::service('views.field_data_provider')                          
         ->defaultFieldImplementation($field_storage); instead.                 
         πŸͺͺ  function.deprecated                                                
  48     Call to deprecated function views_entity_field_label():                
         in drupal:11.2.0 and is removed from drupal:12.0.0. Use                
           \Drupal::service('entity_field.manager')->getFieldLabels() instead.  
         πŸͺͺ  function.deprecated                                                
 ------ ----------------------------------------------------------------------- 

The related CRs for these two deprecations include:

Steps to reproduce

  • Create an MR for this issue.
  • Uncomment the line OPT_IN_TEST_NEXT_MINOR: 1 in .gitlab-ci.yml
  • Commit and push.
  • See the phpstan failure.

Proposed resolution

Properly handle the deprecated functions following best practices.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

2.3

Component

Code

Created by

πŸ‡ͺπŸ‡¨Ecuador jwilson3

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024