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

Command icon 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:

Comments

mradcliffe created an issue. See original summary.

mradcliffe’s picture

Status: Active » Needs review

  • hexblot committed 049ad384 on 2.0.x
    Issue #3565742: restore Drupal 10 / 11.0 / 11.1 compatibility by falling...

hexblot’s picture

Status: Needs review » Fixed

Fixed 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.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.