15 calls to Drupal::hasContainer()

AccountProxyTest::testId in core/tests/Drupal/Tests/Core/Session/AccountProxyTest.php
Tests id.
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
DateFormatAccessControlHandlerTest::providerTestAccess in core/modules/system/tests/src/Kernel/DateFormatAccessControlHandlerTest.php
Provides test cases for access control based on user permissions and entity lock status.
Extension::__wakeup in core/lib/Drupal/Core/Extension/Extension.php
Magic method implementation to unserialize the extension object.
ExtensionDiscovery::setProfileDirectoriesFromSettings in core/lib/Drupal/Core/Extension/ExtensionDiscovery.php
Sets installation profile directories based on current site settings.
LocalActionManagerTest::getActionsForRouteProvider in core/tests/Drupal/Tests/Core/Menu/LocalActionManagerTest.php
LocalTaskManagerTest::setupNullCacheabilityMetadataValidation in core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php
PhpUnitTestDiscovery::getTestClasses in core/lib/Drupal/Core/Test/PhpUnitTestDiscovery.php
Discovers available tests.
SqlTest::setupEntityTypeManager in core/modules/views/tests/src/Unit/Plugin/query/SqlTest.php
Sets up the entity type manager in the container.
SqlTest::setupViewsData in core/modules/views/tests/src/Unit/Plugin/query/SqlTest.php
Sets up the views data in the container.
TestSetupTrait::__get in core/lib/Drupal/Core/Test/TestSetupTrait.php
Implements the magic method for getting object properties.
ViewExecutable::__wakeup in core/modules/views/src/ViewExecutable.php
Magic method implementation to unserialize the view executable.
WorkflowAccessControlHandlerTest::checkAccessProvider in core/modules/workflows/tests/src/Kernel/WorkflowAccessControlHandlerTest.php
Data provider for ::testCheckAccess.
_drupal_log_error in core/includes/errors.inc
Logs a PHP error or exception and displays an error page in fatal cases.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.