public function Drupal8::moduleList in Realistic Dummy Content 3.x
Same name and namespace in other branches
- 8.2 api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::moduleList()
- 7.2 api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::moduleList()
Gets a list of modules.
Overrides Framework::moduleList
File
- api/
src/ Framework/ Drupal8.php, line 200
Class
- Drupal8
- Drupal 8-specific code.
Namespace
Drupal\realistic_dummy_content_api\FrameworkCode
public function moduleList() {
// @phpstan-ignore-next-line
$full_list = \Drupal::moduleHandler()
->getModuleList();
return array_keys($full_list);
}