Fix usage of deprecated views_field_default_views_data and related helpers

Created on 28 July 2025, about 2 months ago

Problem/Motivation

See https://www.drupal.org/node/3489502 β†’

Steps to reproduce

 ------ ----------------------------------------------------------------------- 
  Line   range.views.inc                                                        
 ------ ----------------------------------------------------------------------- 
  14     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                                                
  50     Call to deprecated function _views_field_get_entity_type_storage():    
         in drupal:11.2.0 and is removed from drupal:12.0.0. Use                
         \Drupal::service('views.field_data_provider')                          
         ->getSqlStorageForField($field_storage); instead.                      
         πŸͺͺ  function.deprecated                                                
 ------ ----------------------------------------------------------------------- 
 [ERROR] Found 3 errors                                                         

Proposed resolution

Fix deprecations

Remaining tasks

Provide a PR

User interface changes

None

API changes

None

Data model changes

None

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Taran2L Lviv

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