function DrupalKernel::getModuleFileNames
Same name in other branches
- 9 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::getModuleFileNames()
- 8.9.x core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::getModuleFileNames()
- 11.x core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::getModuleFileNames()
Gets the file name for each enabled module.
Return value
array Array where each key is a module name, and each value is a path to the respective *.info.yml file.
3 calls to DrupalKernel::getModuleFileNames()
- DrupalKernel::compileContainer in core/
lib/ Drupal/ Core/ DrupalKernel.php - Compiles a new service container.
- DrupalKernel::discoverServiceProviders in core/
lib/ Drupal/ Core/ DrupalKernel.php - Discovers available serviceProviders.
- DrupalKernel::updateModules in core/
lib/ Drupal/ Core/ DrupalKernel.php - Implements Drupal\Core\DrupalKernelInterface::updateModules().
File
-
core/
lib/ Drupal/ Core/ DrupalKernel.php, line 1561
Class
- DrupalKernel
- The DrupalKernel class is the core of Drupal itself.
Namespace
Drupal\CoreCode
protected function getModuleFileNames() {
$filenames = [];
foreach ($this->moduleList as $module => $weight) {
if ($data = $this->moduleData($module)) {
$filenames[$module] = $data->getPathname();
}
}
return $filenames;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.