drupal_static_reset($name = NULL)
Resets one or all centrally stored static variable(s).
$name: Name of the static variable to reset. Omit to reset all variables. Resetting all variables should only be used, for example, for running unit tests with a clean environment.
function drupal_static_reset($name = NULL) { drupal_static($name, NULL, TRUE); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!bootstrap.inc/function/drupal_static_reset/8.1.x