You are here

public function ModuleHandlerInterface::loadAllIncludes in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::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.

1 method overrides ModuleHandlerInterface::loadAllIncludes()
ModuleHandler::loadAllIncludes in core/lib/Drupal/Core/Extension/ModuleHandler.php
Loads an include file for each enabled module.

File

core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 137

Class

ModuleHandlerInterface
Interface for classes that manage a set of enabled modules.

Namespace

Drupal\Core\Extension

Code

public function loadAllIncludes($type, $name = NULL);