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

[META] Remove all usages of drupal_static() & drupal_static_reset()

$
0
0

Problem/Motivation

In #2260187: Deprecate drupal_static() and drupal_static_reset() we'll deprecate the drupal_static()& drupal_static_reset() procedural functions. However, in order to do so, we have to remove first all usages from Drupal core.

Proposed resolution

We cannot do all the removals in one step. Each usage it's an issue itself. So, this issues is a META to track the progress:

Child issues:

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

Original report

from comment #19 of #1567428: Active trail tests, in order to handle static variables in Drupal 8 we should convert every use of statics to instead be protected properties of proper objects. The result of this effort will be that we properly register objects into the Dependency Injection Container and perhaps do away with drupal_static() and drupal_static_reset().


Viewing all articles
Browse latest Browse all 293246

Trending Articles



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