function ModuleHandlerInterface::buildModuleDependencies
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::buildModuleDependencies()
- 10 core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::buildModuleDependencies()
- 11.x core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::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
array 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.
See also
\Drupal\Core\Extension\ExtensionDiscovery
1 method overrides ModuleHandlerInterface::buildModuleDependencies()
- ModuleHandler::buildModuleDependencies in core/
lib/ Drupal/ Core/ Extension/ ModuleHandler.php - Determines which modules require and are required by each module.
File
-
core/
lib/ Drupal/ Core/ Extension/ ModuleHandlerInterface.php, line 115
Class
- ModuleHandlerInterface
- Interface for classes that manage a set of enabled modules.
Namespace
Drupal\Core\ExtensionCode
public function buildModuleDependencies(array $modules);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.