18 calls to Drupal::hasService() in Drupal 8
- Extension::__wakeup in core/
lib/ Drupal/ Core/ Extension/ Extension.php - Magic method implementation to unserialize the extension object.
- 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.
- help_topics_modules_uninstalled in core/
modules/ help_topics/ help_topics.module - Implements hook_modules_uninstalled().
- InfoParserDynamic::__construct in core/
lib/ Drupal/ Core/ Extension/ InfoParserDynamic.php - InfoParserDynamic constructor.
- LegacyMessenger::getMessengerService in core/
lib/ Drupal/ Core/ Messenger/ LegacyMessenger.php - Returns the Messenger service.
- ModuleInstaller::install in core/
lib/ Drupal/ Core/ Extension/ ModuleInstaller.php - Installs a given list of modules.
- 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 a 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.