Same name and namespace in other branches
- 8.9.x core/lib/Drupal.php \Drupal::container
- 9 core/lib/Drupal.php \Drupal::container
The currently active container object, or NULL if not initialized yet.
Type: \Drupal\Component\DependencyInjection\ContainerInterface|null
File
- core/
lib/ Drupal.php, line 141
Class
- Drupal
- Static Service Container wrapper.
Code
protected static $container;