function DrupalKernel::getModuleFileNames
Gets the filenames 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.
Deprecated
in drupal:11.3.0 and is removed from drupal:12.0.0. Use getExtensionFileNames() instead.
See also
https://www.drupal.org/node/3551652
File
-
core/
lib/ Drupal/ Core/ DrupalKernel.php, line 1665
Class
- DrupalKernel
- The DrupalKernel class is the core of Drupal itself.
Namespace
Drupal\CoreCode
protected function getModuleFileNames() {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Use getExtensionFileNames() instead. See https://www.drupal.org/node/3551652', E_USER_DEPRECATED);
return $this->getExtensionFileNames($this->moduleList, [
$this,
'moduleData',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.