You are here

public function ModuleHandler::loadAllIncludes in Service Container 7

Same name and namespace in other branches
  1. 7.2 src/Extension/ModuleHandler.php \Drupal\service_container\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

src/Extension/ModuleHandler.php, line 149
Contains Drupal\service_container\Extension\ModuleHandler.

Class

ModuleHandler
Class that manages modules in a Drupal installation.

Namespace

Drupal\service_container\Extension

Code

public function loadAllIncludes($type, $name = NULL) {
  $this->drupal7
    ->module_load_all_includes($type, $name);
}