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

Breadcrumb

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

function DrupalKernelInterface::getServiceProviders

Returns all registered service providers.

Parameters

string $origin: The origin for which to return service providers; one of 'app' or 'site'.

Return value

array An associative array of ServiceProvider objects, keyed by name.

1 method overrides DrupalKernelInterface::getServiceProviders()
DrupalKernel::getServiceProviders in core/lib/Drupal/Core/DrupalKernel.php
Returns all registered service providers.

File

core/lib/Drupal/Core/DrupalKernelInterface.php, line 56

Class

DrupalKernelInterface
The interface for DrupalKernel, the core of Drupal.

Namespace

Drupal\Core

Code

public function getServiceProviders($origin);

API Navigation

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