Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294626

Deprecate views_field_default_views_data and related functions

$
0
0

Problem/Motivation

It would be great to deprecate auto including .inc files defined by hook-hook-info groups.

In order to do that we first need remove helpers from provided groups.

This issue handles all of the functions related to views_field_default_views_data.

We replace the functionality, then deprecate the functions and move them to the .module files.

We use DI for the replacements only on a couple since views related dependencies need to be optional so they must be last.

The hooks using these services should be converted to DI in a followup.

Steps to reproduce

N/A

Proposed resolution

Move it to a service in the views module.
Replace calls.

Remaining tasks

Open follow up to add dependency injection to the hook classes using this. I didn't want to add this as the first injected dependency, but also didn't want to add DI to all the hook classes using this as part of this issue.

User interface changes

N/A

Introduced terminology

N/A

API changes

Deprecated functions:
views_field_default_views_data
datetime_type_field_views_data_helper
_views_field_get_entity_type_storage
_content_moderation_views_data_object

See cr for replacements.

Data model changes

N/A

Release notes snippet


Viewing all articles
Browse latest Browse all 294626

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>