[PP-1] Deprecate file_get_file_references(). Move the logic to file.usage service

Created on 24 February 2019, almost 6 years ago
Updated 1 September 2023, over 1 year ago

Problem/Motivation

Part of the effort ๐ŸŒฑ [META] Remove all usages of drupal_static() & drupal_static_reset() Active .

file_get_file_references() uses drupal_static().

Proposed resolution

  • Move the logic to file.usage service, where seems that it belongs.
  • Deprecate file_get_file_references() and file_field_find_file_reference_column().

Remaining tasks

  1. Update deprecation notices to 10.2.0
  2. Update Change Record
  3. Add test coverage for getReferences method
  4. Review

User interface changes

None.

API changes

  • New method FileUsageInterface::getReferences().
  • file_get_file_references() is deprecated.

Data model changes

None.

Release notes snippet

N/A

๐Ÿ“Œ Task
Status

Postponed

Version

11.0 ๐Ÿ”ฅ

Component
File moduleย  โ†’

Last updated 27 days ago

Created by

๐Ÿ‡ท๐Ÿ‡ดRomania claudiu.cristea Arad ๐Ÿ‡ท๐Ÿ‡ด

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024