protected function WardenManager::getModules in Warden 8
Same name and namespace in other branches
- 8.2 src/Service/WardenManager.php \Drupal\warden\Service\WardenManager::getModules()
- 3.x src/Service/WardenManager.php \Drupal\warden\Service\WardenManager::getModules()
Return value
1 call to WardenManager::getModules()
- WardenManager::generateSiteData in src/
Service/ WardenManager.php - Generate all the site's data for Warden.
File
- src/
Service/ WardenManager.php, line 370
Class
- WardenManager
- Default controller for the warden module.
Namespace
Drupal\warden\ServiceCode
protected function getModules() {
if (!isset($this->modules)) {
$listing = new ExtensionDiscovery(\Drupal::root());
$this
->setModules($listing
->scan('module'));
}
return $this->modules;
}