public static function Drupal::hasContainer in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal.php \Drupal::hasContainer()
Returns TRUE if the container has been initialized, FALSE otherwise.
Return value
bool
3 calls to Drupal::hasContainer()
- 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.
- LocalTaskManagerTest::setupNullCacheabilityMetadataValidation in core/
tests/ Drupal/ Tests/ Core/ Menu/ LocalTaskManagerTest.php
File
- core/
lib/ Drupal.php, line 139 - Contains \Drupal.
Class
- Drupal
- Static Service Container wrapper.
Code
public static function hasContainer() {
return static::$container !== NULL;
}