protected function DrupalKernel::addServiceFiles in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::addServiceFiles()
- 9 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 1534
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');
}