DrupalKernel::getModuleFileNames

protected 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.

File

core/lib/Drupal/Core/DrupalKernel.php, line 1368

Class

DrupalKernel
The DrupalKernel class is the core of Drupal itself.

Namespace

Drupal\Core

Code

protected function getModuleFileNames() {
  $filenames = array();
  foreach ($this->moduleList as $module => $weight) {
    if ($data = $this->moduleData($module)) {
      $filenames[$module] = $data->getPathname();
    }
  }
  return $filenames;
}
doc_Drupal
2016-10-29 09:03:01
Comments
Leave a Comment

Please login to continue.