23 calls to Drupal::hasService()

Connection::dispatchEvent in core/lib/Drupal/Core/Database/Connection.php
Dispatches a database API event via the container dispatcher.
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
ExtensionDiscovery::scan in core/lib/Drupal/Core/Extension/ExtensionDiscovery.php
Discovers available extensions of a given type.
FormBuilder::currentUser in core/lib/Drupal/Core/Form/FormBuilder.php
Gets the current active user.
ModuleInstaller::install in core/lib/Drupal/Core/Extension/ModuleInstaller.php
new_dependency_test_update_8001 in core/modules/system/tests/modules/new_dependency_test/new_dependency_test.install
Enable the new_dependency_test_with_service module.
Node::preDelete in core/modules/node/src/Entity/Node.php
package_manager_requirements in core/modules/package_manager/package_manager.install
Implements hook_requirements().
PluralTranslatableMarkup::getPluralIndex in core/lib/Drupal/Core/StringTranslation/PluralTranslatableMarkup.php
Gets the plural index through the gettext formula.
PublicStream::basePath in core/lib/Drupal/Core/StreamWrapper/PublicStream.php
Returns the base path for public://.
ServiceProviderTest::testServiceProviderRegistration in core/tests/Drupal/KernelTests/Core/ServiceProvider/ServiceProviderTest.php
Tests that services provided by module service providers get registered to the DIC.
ServiceProviderTest::testServiceProviderRegistrationDynamic in core/tests/Drupal/KernelTests/Core/ServiceProvider/ServiceProviderTest.php
Tests that the DIC keeps up with module enable/disable in the same request.
ServiceProviderWebTest::testServiceProviderRegistrationIntegration in core/modules/system/tests/src/Functional/ServiceProvider/ServiceProviderWebTest.php
Tests that module service providers get registered to the DIC.
StorageComparer::__construct in core/lib/Drupal/Core/Config/StorageComparer.php
Constructs the Configuration storage comparer.
StringTranslationTrait::getNumberOfPlurals in core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php
Returns the number of plurals supported by a given language.
system_requirements in core/modules/system/system.install
Implements hook_requirements().
UiHelperTrait::buildUrl in core/tests/Drupal/Tests/UiHelperTrait.php
Builds an absolute URL from a system path or a URL object.
WorkspaceManager::doSwitchWorkspace in core/modules/workspaces/src/WorkspaceManager.php
Switches the current workspace.
WorkspaceSafeFormTrait::isWorkspaceSafeEntity in core/lib/Drupal/Core/Entity/Form/WorkspaceSafeFormTrait.php
Determines whether an entity used in a form is workspace-safe.
WorkspaceSafeFormTrait::isWorkspaceSafeEntityType in core/lib/Drupal/Core/Entity/Form/WorkspaceSafeFormTrait.php
Determines whether an entity type used in a form is workspace-safe.
_drupal_log_error in core/includes/errors.inc
Logs a PHP error or exception and displays an error page in fatal cases.
_help_search_update in core/modules/help/help.module
Ensure that search is updated when extensions are installed or uninstalled.

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