You are here

public function Variable::get in Service Container 7

Same name and namespace in other branches
  1. 7.2 src/Variable.php \Drupal\service_container\Variable::get()

File

src/Variable.php, line 42
Contains \Drupal\service_container\Variable.

Class

Variable
Provides a injectable version of variable_set() / variable_get().

Namespace

Drupal\service_container

Code

public function get($name, $default = NULL) {
  return $this->drupal7
    ->variable_get($name, $default);
}