Problem/Motivation
@minorOffense noted that the change to add views.field_data_provider in #3550968: Setup GitLab CI pipelines is not supported in Drupal 11.1 or below. It was only added 11.2.0 and greater.
The 2.0.x-dev branch currently supports Drupal 10 and greater. 2.0.0 supports Drupal 8 and 9.
Steps to reproduce
Upgrade to use 2.0.x-dev on field_ipaddress on a Drupal 11.1 or lower Drupal instance.
Proposed resolution
1. Branch a 3.0.x version to remove support for Drupal <11.1.
2. On 2.0.x , Wrap the conditional in a \Drupal::hasService call, and provide a condition to continue using the deprecated views_field_default_views_data($field_storage);. This should technically match Drupal 12 even if the else branch is there, but it should be removed since it wouldn't be in Drupal 12 (or remove support for Drupal 12 in 2.0.x to maintain backwards compatibliity).
Remaining tasks
Issue fork field_ipaddress-3565742
Show commands
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:
- 3565742-d10-support
changes, plain diff MR !8
Comments
Comment #3
mradcliffeComment #6
hexblot commentedFixed in 2.1.1 (commit 220a1ef). The fix is substantively the same as MR !8 proposed by @mradcliffe on 2026-01-05 — credit to Matthew for being first with this approach.Closing as fixed. Thanks @mradcliffe for the patch and for catching this.