W3cubDocs

/Drupal 8

protected static property Drupal::$container

The currently active container object, or NULL if not initialized yet.

Type: \Symfony\Component\DependencyInjection\ContainerInterface|null

File

core/lib/Drupal.php, line 101
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

protected static $container;

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal.php/property/Drupal::container/8.1.x