function DrupalKernelInterface::getServiceProviders
Same name in other branches
- 9 core/lib/Drupal/Core/DrupalKernelInterface.php \Drupal\Core\DrupalKernelInterface::getServiceProviders()
- 8.9.x core/lib/Drupal/Core/DrupalKernelInterface.php \Drupal\Core\DrupalKernelInterface::getServiceProviders()
- 10 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\CoreCode
public function getServiceProviders($origin);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.