You are here

public function ModuleHandler::buildModuleDependencies in Service Container 7.2

Same name and namespace in other branches
  1. 7 src/Extension/ModuleHandler.php \Drupal\service_container\Extension\ModuleHandler::buildModuleDependencies()

Determines which modules require and are required by each module.

Parameters

array $modules: An array of module objects keyed by module name. Each object contains information discovered during a Drupal\Core\Extension\ExtensionDiscovery scan.

Return value

The same array with the new keys for each module:

  • requires: An array with the keys being the modules that this module requires.
  • required_by: An array with the keys being the modules that will not work without this module.

Overrides ModuleHandlerInterface::buildModuleDependencies

See also

\Drupal\Core\Extension\ExtensionDiscovery

File

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

Class

ModuleHandler
Class that manages modules in a Drupal installation.

Namespace

Drupal\service_container\Extension

Code

public function buildModuleDependencies(array $modules) {

  // @TODO
}