
| Current Path : /var/www/html/store1/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/store1/vendor/chi-teck/drupal-code-generator/src/Command/RenderElement.php |
<?php declare(strict_types=1);
namespace DrupalCodeGenerator\Command;
use DrupalCodeGenerator\Application;
/**
* Implements render-element command.
*/
final class RenderElement extends ModuleGenerator {
protected string $name = 'render-element';
protected string $description = 'Generates Drupal render element';
protected ?string $nameQuestion = NULL;
protected string $templatePath = Application::TEMPLATE_PATH . '/render-element';
/**
* {@inheritdoc}
*/
protected function generate(array &$vars): void {
$this->collectDefault($vars);
$this->addFile('src/Element/Entity.php', 'render-element');
}
}