public static function DStatic::setFlag in Little helpers 7
Set a value by value. This is mainly for convenience (default value) and so that calls like: DStatic::setFlag('name', 'somevalue'); work without warings.
Parameters
string $name: name of the value to set.
mixed $value: value of any type to store.
File
- src/
DStatic.php, line 23
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_helpersCode
public static function setFlag($name, $value = TRUE) {
self::$data[$name] = $value;
}