Problem/Motivation

Now that system lists are all services system_list_reset() is pointless. Once the container is rebuilt the lists are reset.

The system_list() function is already deprecated.

Proposed resolution

Deprecate the method. If contrib or custom is using it and its functionality is really required they can either rebuild the container or call each \Drupal::service('extension.list.TYPE')->reset() as necessary.

Remaining tasks

User interface changes

None

API changes

Deprecate system_list_reset()

Data model changes

None

Release notes snippet

None

CommentFileSizeAuthor
#2 3017105-2.patch4.91 KBalexpott

Comments

alexpott created an issue. See original summary.

alexpott’s picture

Status: Active » Needs review
StatusFileSize
new4.91 KB
johnwebdev’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed 344522d and pushed to 8.7.x. Thanks!

  • catch committed 344522d on 8.7.x
    Issue #3017105 by alexpott: Deprecate system_list_reset()
    
alexpott’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.