You are here

public static function DStatic::set in Little helpers 7

Set a value by reference.

Parameters

string $name: name of the value to set.

mixed $value: value of any type to store.

File

src/DStatic.php, line 35

Class

DStatic
This class deals with request wide variables and flags. It's best to think of it like an object oriented version of drupal_static().

Namespace

Drupal\little_helpers

Code

public static function set($name, &$value) {
  self::$data[$name] =& $value;
}