93e25749b812b1096e62e51d267873da964ffd61
[yaffs-website] / vendor / chi-teck / drupal-code-generator / src / Command / Drupal_8 / Form / Config.php
1 <?php
2
3 namespace DrupalCodeGenerator\Command\Drupal_8\Form;
4
5 use Symfony\Component\Console\Input\InputInterface;
6 use Symfony\Component\Console\Output\OutputInterface;
7
8 /**
9  * Implements d8:form:config command.
10  */
11 class Config extends Base {
12
13   protected $name = 'd8:form:config';
14   protected $description = 'Generates a configuration form';
15   protected $alias = 'config-form';
16
17   /**
18    * {@inheritdoc}
19    */
20   protected function interact(InputInterface $input, OutputInterface $output) {
21     $options = [
22       'default_class' => 'SettingsForm',
23       'default_permission' => 'administer site configuration',
24       'default_path_prefix' => '/admin',
25       'template' => 'd8/form/config.twig',
26     ];
27     $this->doInteract($input, $output, $options);
28   }
29
30 }