You are here

public function WardenCommands::showModuleData in Warden 8

Same name and namespace in other branches
  1. 8.2 src/Commands/WardenCommands.php \Drupal\warden\Commands\WardenCommands::showModuleData()
  2. 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\Commands

Code

public function showModuleData() {
  module_load_include('inc', 'warden', 'warden.page');
  $warden_manager = \Drupal::service('warden.manager');
  $data = $warden_manager
    ->generateSiteData();
  $this
    ->output()
    ->writeln($data);
}