Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ModuleHandlerInterface.php

function ModuleHandlerInterface::load

Includes a module's .module file.

This prevents including a module more than once.

Parameters

string $name: The name of the module to load.

Return value

bool TRUE if the item is loaded or has already been loaded.

1 method overrides ModuleHandlerInterface::load()
ModuleHandler::load in core/lib/Drupal/Core/Extension/ModuleHandler.php
Includes a module's .module file.

File

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

Class

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

Namespace

Drupal\Core\Extension

Code

public function load($name);
RSS feed
Powered by Drupal