public static function Drupal::unsetContainer in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal.php \Drupal::unsetContainer()
- 10 core/lib/Drupal.php \Drupal::unsetContainer()
Unsets the global container.
6 calls to Drupal::unsetContainer()
- FunctionalTestSetupTrait::getDatabaseTypes in core/
lib/ Drupal/ Core/ Test/ FunctionalTestSetupTrait.php - Returns all supported database driver installer objects.
- KernelTestBase::bootEnvironment in core/
tests/ Drupal/ KernelTests/ KernelTestBase.php - Bootstraps a basic test environment.
- KernelTestBase::tearDown in core/
tests/ Drupal/ KernelTests/ KernelTestBase.php - MessengerLegacyTest::testMessages in core/
tests/ Drupal/ KernelTests/ Core/ Messenger/ MessengerLegacyTest.php - @covers \Drupal::messenger @covers ::getMessengerService @covers ::all @covers ::addMessage @covers ::addError @covers ::addStatus @covers ::addWarning
- TestBase::prepareEnvironment in core/
modules/ simpletest/ src/ TestBase.php - Prepares the current environment for running the test.
File
- core/
lib/ Drupal.php, line 117 - Contains \Drupal.
Class
- Drupal
- Static Service Container wrapper.
Code
public static function unsetContainer() {
static::$container = NULL;
}