You are here

public function Variable::set in Service Container 7.2

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

File

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

Class

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

Namespace

Drupal\service_container

Code

public function set($name, $value) {
  $this->drupal7
    ->variable_set($name, $value);
}