You are here

public function ModuleHandler::loadAllIncludes in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Extension/ModuleHandler.php \Drupal\Core\Extension\ModuleHandler::loadAllIncludes()

Loads an include file for each enabled module.

Parameters

string $type: The include file's type (file extension).

string $name: (optional) The base file name (without the $type extension). If omitted, each module's name is used; i.e., "$module.$type" by default.

Overrides ModuleHandlerInterface::loadAllIncludes

File

core/lib/Drupal/Core/Extension/ModuleHandler.php, line 250
Contains \Drupal\Core\Extension\ModuleHandler.

Class

ModuleHandler
Class that manages modules in a Drupal installation.

Namespace

Drupal\Core\Extension

Code

public function loadAllIncludes($type, $name = NULL) {
  foreach ($this->moduleList as $module => $filename) {
    $this
      ->loadInclude($module, $type, $name);
  }
}