public function DrupalStatic::resetAll in X Autoload 7.5
Replicates drupal_static(NULL, NULL, TRUE).
Return value
array
See also
File
- tests/
src/ VirtualDrupal/ DrupalStatic.php, line 77
Class
Namespace
Drupal\xautoload\Tests\VirtualDrupalCode
public function &resetAll() {
// Reset all: ($name == NULL). This needs to be done one at a time so that
// references returned by earlier invocations of drupal_static() also get
// reset.
foreach ($this->default as $name => $value) {
$this->data[$name] = $value;
}
// As the function returns a reference, the return should always be a
// variable.
return $this->data;
}