Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ServiceLoader.php

function ServiceLoader::providers

Parameters

class-string $service:

Return value

list<class-string>

3 calls to ServiceLoader::providers()
ServiceLoader::load in vendor/tbachert/spi/src/ServiceLoader.php
Lazy loads service providers for the given service.
ServiceLoader::register in vendor/tbachert/spi/src/ServiceLoader.php
Registers a service provider implementation for the given service type.
ServiceLoader::reload in vendor/tbachert/spi/src/ServiceLoader.php
Reloads this service loader, clearing all cached instances.

File

vendor/tbachert/spi/src/ServiceLoader.php, line 103

Class

ServiceLoader
Service provider loading facility.

Namespace

Nevay\SPI

Code

private static function providers(string $service) : array {
    if (($providers = self::$mappings[$service] ?? null) !== null) {
        return $providers;
    }
    $providers = class_exists(GeneratedServiceProviderData::class) && GeneratedServiceProviderData::VERSION === 1 ? GeneratedServiceProviderData::providers($service) : [];
    return self::$mappings[$service] ??= $providers;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal