function Drupal::hasContainer
Returns TRUE if the container has been initialized, FALSE otherwise.
Return value
bool
8 calls to Drupal::hasContainer()
- Database::getDriverList in core/
lib/ Drupal/ Core/ Database/ Database.php - Returns the list provider for available database drivers.
- DatabaseDriver::load in core/
lib/ Drupal/ Core/ Extension/ DatabaseDriver.php - Loads the main extension file, if any.
- Drupal::hasRequest in core/
lib/ Drupal.php - Indicates if there is a currently active request object.
- Drupal::hasService in core/
lib/ Drupal.php - Indicates if a service is defined in the container.
- Extension::__wakeup in core/
lib/ Drupal/ Core/ Extension/ Extension.php - Magic method implementation to unserialize the extension object.
File
-
core/
lib/ Drupal.php, line 179
Class
- Drupal
- Static Service Container wrapper.
Code
public static function hasContainer() {
return static::$container !== NULL;
}