You are here

public static function Module::getDirectories in Plug 7

Generates the cached array of enabled module directories.

Parameters

bool $all: Include values for disabled modules.

Return value

array A list of module directories.

3 calls to Module::getDirectories()
FruitPluginManager::__construct in modules/plug_example/src/FruitPluginManager.php
Constructs FruitPluginManager.
Module::namespaces in src/Util/Module.php
Gets the array of available namespaces for plugins.
PlugBasicTest::testModuleDirectories in lib/Drupal/plug/Tests/PlugBasicTest.php
Checks the Module::getModuleDirectories() method.

File

src/Util/Module.php, line 38
Contains Drupal\plug\Util\Module.

Class

Module

Namespace

Drupal\plug\Util

Code

public static function getDirectories($all = FALSE) {
  if ($all) {

    // Do not use caches or cache the results.
    return static::directories($all);
  }
  return static::memoize('directories');
}