function DrupalKernelInterface::getServiceProviders

Same name in other branches
  1. 9 core/lib/Drupal/Core/DrupalKernelInterface.php \Drupal\Core\DrupalKernelInterface::getServiceProviders()
  2. 8.9.x core/lib/Drupal/Core/DrupalKernelInterface.php \Drupal\Core\DrupalKernelInterface::getServiceProviders()
  3. 11.x 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 57

Class

DrupalKernelInterface
The interface for DrupalKernel, the core of Drupal.

Namespace

Drupal\Core

Code

public function getServiceProviders($origin);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.