
| Current Path : /var/www/html/vendor/chi-teck/drupal-code-generator/src/Command/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/vendor/chi-teck/drupal-code-generator/src/Command/ModuleFile.php |
<?php declare(strict_types=1);
namespace DrupalCodeGenerator\Command;
use DrupalCodeGenerator\Application;
/**
* Implements module-file command.
*/
final class ModuleFile extends ModuleGenerator {
protected string $name = 'module-file';
protected string $description = 'Generates a module file';
protected string $templatePath = Application::TEMPLATE_PATH . '/module-file';
/**
* {@inheritdoc}
*/
protected function generate(array &$vars): void {
$this->collectDefault($vars);
$this->addFile('{machine_name}.module', 'module');
}
}