18 calls to Drupal::hasService()
- 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.
- InfoParserDynamic::__construct in core/
lib/ Drupal/ Core/ Extension/ InfoParserDynamic.php - InfoParserDynamic constructor.
- ModuleInstaller::install in core/
lib/ Drupal/ Core/ Extension/ ModuleInstaller.php - Installs a given list of modules.
- module_load_include in core/
includes/ module.inc - Loads a module include file.
- module_load_install in core/
includes/ module.inc - Loads a module's installation hooks.
- 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 - Acts on entities before they are deleted and before hooks are invoked.
- 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.
- 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.
- _drupal_log_error in core/
includes/ errors.inc - Logs a PHP error or exception and displays an error page in fatal cases.
- _help_topics_search_update in core/
modules/ help_topics/ help_topics.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.