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

Breadcrumb

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

function ModuleHandlerInterface::addModule

Adds a module to the list of currently active modules.

Parameters

string $name: The module name; e.g., 'node'.

string $path: The module path; e.g., 'core/modules/node'.

1 method overrides ModuleHandlerInterface::addModule()
ModuleHandler::addModule in core/lib/Drupal/Core/Extension/ModuleHandler.php
Adds a module to the list of currently active modules.

File

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

Class

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

Namespace

Drupal\Core\Extension

Code

public function addModule($name, $path);
RSS feed
Powered by Drupal