function system_list_reset

Same name and namespace in other branches
  1. 7.x includes/module.inc \system_list_reset()

Resets all system_list() caches.

Deprecated

in drupal:8.7.0 and is removed from drupal:9.0.0. There is no direct replacement. Call each \Drupal::service('extension.list.TYPE')->reset() as necessary.

See also

https://www.drupal.org/node/2709919

1 call to system_list_reset()
SystemListTest::testSystemList in core/tests/Drupal/KernelTests/Core/Theme/SystemListTest.php
Tests installing a theme.

File

core/includes/module.inc, line 54

Code

function system_list_reset() {
    @trigger_error("system_list_reset() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. There is no direct replacement. Call each \\Drupal::service('extension.list.TYPE')->reset() as necessary. See https://www.drupal.org/node/2709919.", E_USER_DEPRECATED);
    \Drupal::service('extension.list.profile')->reset();
    \Drupal::service('extension.list.module')->reset();
    \Drupal::service('extension.list.theme_engine')->reset();
    \Drupal::service('extension.list.theme')->reset();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.