public static function Module::getNamespaces in Plug 7
Generates the cached array of available namespaces for plugins.
Parameters
bool $all: Include values for disabled modules.
Return value
\ArrayObject The generated array of namespaces.
3 calls to Module::getNamespaces()
- FruitPluginManager::create in modules/
plug_example/ src/ FruitPluginManager.php - FruitPluginManager factory method.
- NamePluginManager::create in modules/
plug_example/ src/ NamePluginManager.php - NamePluginManager factory method.
- PlugBasicTest::testModuleNamespaces in lib/
Drupal/ plug/ Tests/ PlugBasicTest.php - Checks the Module::getNamespaces() method.
File
- src/
Util/ Module.php, line 21 - Contains Drupal\plug\Util\Module.
Class
Namespace
Drupal\plug\UtilCode
public static function getNamespaces($all = FALSE) {
if ($all) {
// Do not use caches or cache the results.
return new \ArrayObject(static::namespaces($all));
}
return new \ArrayObject(static::memoize('namespaces'));
}