function ModuleHandlerInterface::getModuleDirectories

Same name in other branches
  1. 9 core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::getModuleDirectories()
  2. 8.9.x core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::getModuleDirectories()
  3. 11.x core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::getModuleDirectories()

Returns an array of directories for all enabled modules.

This is useful for tasks such as finding a file that exists in all module directories.

Return value

array

File

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

Class

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

Namespace

Drupal\Core\Extension

Code

public function getModuleDirectories();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.