Deprecate file_get_file_references(). Move the logic to file.usage service

Created on 24 February 2019, over 6 years ago
Updated 30 January 2023, over 2 years 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().

Or should we create a new service?

Remaining tasks

None.

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

Needs work

Version

10.1 โœจ

Component
File moduleย  โ†’

Last updated 10 days ago

Created by

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

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

Merge Requests

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