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

Breadcrumb

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

function ServiceLoader::serviceAvailable

@internal

2 calls to ServiceLoader::serviceAvailable()
Plugin::dumpGeneratedServiceProviderData in vendor/tbachert/spi/src/Composer/Plugin.php
ServiceLoader::register in vendor/tbachert/spi/src/ServiceLoader.php
Registers a service provider implementation for the given service type.

File

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

Class

ServiceLoader
Service provider loading facility.

Namespace

Nevay\SPI

Code

public static function serviceAvailable(string $service) : bool {
    return interface_exists($service) || class_exists($service);
}

API Navigation

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