You are here

protected function DrupalKernel::getModuleFileNames in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 *.module or *.profile file.

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

File

core/lib/Drupal/Core/DrupalKernel.php, line 1312
Contains \Drupal\Core\DrupalKernel.

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;
}