You are here

public function DrupalKernelInterface::getServiceProviders in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/DrupalKernelInterface.php \Drupal\Core\DrupalKernelInterface::getServiceProviders()
  2. 9 core/lib/Drupal/Core/DrupalKernelInterface.php \Drupal\Core\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);