Provide proper fallback for D.11 views.field_data_provider for D10

Created on 18 July 2025, about 1 month ago

Problem/Motivation

WSOD and various views related errors:

1. Root Cause: Geolocation 4.x branch assumes Drupal 11.x's views.field_data_provider service
exists, but it doesn't exist in Drupal 10.5.x
2. Proper Fallback Pattern (from other modules):

if (\Drupal::hasService('views.field_data_provider')) {
    $data =
  \Drupal::service('views.field_data_provider')->defaultFieldImplementation($field_storage);
  }
  else {
    $data = views_field_default_views_data($field_storage);
  }

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

4.0

Component

Geolocation Field / Backend

Created by

πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

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

Comments & Activities

Production build 0.71.5 2024