You are here

public function DrupalStatic::resetAll in X Autoload 7.5

Replicates drupal_static(NULL, NULL, TRUE).

Return value

array

See also

drupal_static()

File

tests/src/VirtualDrupal/DrupalStatic.php, line 77

Class

DrupalStatic

Namespace

Drupal\xautoload\Tests\VirtualDrupal

Code

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;
}