public function WardenCommands::showModuleData in Warden 8
Same name and namespace in other branches
- 8.2 src/Commands/WardenCommands.php \Drupal\warden\Commands\WardenCommands::showModuleData()
- 3.x src/Commands/WardenCommands.php \Drupal\warden\Commands\WardenCommands::showModuleData()
Displays the module data that will be sent to Warden
@command warden:show-module-data @aliases warden-show-module-data
File
- src/
Commands/ WardenCommands.php, line 78
Class
- WardenCommands
- A Drush commandfile.
Namespace
Drupal\warden\CommandsCode
public function showModuleData() {
module_load_include('inc', 'warden', 'warden.page');
$warden_manager = \Drupal::service('warden.manager');
$data = $warden_manager
->generateSiteData();
$this
->output()
->writeln($data);
}