function DrupalKernel::addServiceFiles
Same name in other branches
- 9 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::addServiceFiles()
- 10 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::addServiceFiles()
- 11.x core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::addServiceFiles()
Add service files.
Parameters
string[] $service_yamls: A list of service files.
1 call to DrupalKernel::addServiceFiles()
- DrupalKernel::discoverServiceProviders in core/
lib/ Drupal/ Core/ DrupalKernel.php - Discovers available serviceProviders.
File
-
core/
lib/ Drupal/ Core/ DrupalKernel.php, line 1612
Class
- DrupalKernel
- The DrupalKernel class is the core of Drupal itself.
Namespace
Drupal\CoreCode
protected function addServiceFiles(array $service_yamls) {
$this->serviceYamls['site'] = array_filter($service_yamls, 'file_exists');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.