Closed (fixed)
Project:
SVG Image Field
Version:
2.3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
24 Jan 2025 at 02:42 UTC
Updated:
30 Nov 2025 at 17:10 UTC
Jump to comment: Most recent
In #3501734: Drupal 11 compatibility fixes 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:
OPT_IN_TEST_NEXT_MINOR: 1 in .gitlab-ci.ymlProperly handle the deprecated functions following best practices.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jwilson3Comment #4
jwilson3Comment #5
jwilson3Comment #6
jwilson3Comment #7
jwilson3Comment #9
taran2lWent ahead and fixed this .... still supporting 9.5, it's up to you if you want to go like that
Comment #10
jwilson3Yes, for now the D9 compatibility should be kept. Eventually it makes sense to remove support but since it is not a burden yet, were okay to keep it. will review and test soon. Thanks so much for collaborating.
Comment #11
jwilson3Comment #12
jwilson3Comment #16
jwilson3This is now released in version 2.3.5 of SVG Image Field. Please check release notes.
Comment #17
jwilson3This change introduced a bug in views integration for Drupal 11.2+ (See #3560629: You have requested a non-existent service "views.views_field_default_data")
It has since been fixed in release 2.3.6.