public function Variable::__construct in Service Container 7
Same name in this branch
- 7 src/Variable.php \Drupal\service_container\Variable::__construct()
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Variable.php \Symfony\Component\DependencyInjection\Variable::__construct()
Same name and namespace in other branches
- 7.2 src/Variable.php \Drupal\service_container\Variable::__construct()
Constructs a new Variable instance.
Parameters
\Drupal\service_container\Legacy\Drupal7 $drupal7: The Drupal7 service.
File
- src/
Variable.php, line 38 - Contains \Drupal\service_container\Variable.
Class
- Variable
- Provides a injectable version of variable_set() / variable_get().
Namespace
Drupal\service_containerCode
public function __construct(Drupal7 $drupal7) {
$this->drupal7 = $drupal7;
}