3 namespace DrupalCodeGenerator\Command\Drupal_8;
5 use DrupalCodeGenerator\Command\BaseGenerator;
6 use DrupalCodeGenerator\Utils;
7 use Symfony\Component\Console\Input\InputInterface;
8 use Symfony\Component\Console\Output\OutputInterface;
11 * Implements d8:module-file command.
13 class ModuleFile extends BaseGenerator {
15 protected $name = 'd8:module-file';
16 protected $description = 'Generates a module file';
17 protected $alias = 'module-file';
22 protected function interact(InputInterface $input, OutputInterface $output) {
23 $this->collectVars($input, $output, Utils::defaultQuestions());
25 ->path('{machine_name}.module')
26 ->template('d8/module.twig');