Skip to content

Commit 1f23abe

Browse files
committed
Changed templates directory structure.
1 parent fb95b9b commit 1f23abe

File tree

21 files changed

+19
-19
lines changed

21 files changed

+19
-19
lines changed

src/Commands/Drupal_8/Form/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected function interact(InputInterface $input, OutputInterface $output) {
2929
$vars = $this->collectVars($input, $output, $questions);
3030

3131
$path = $this->createPath('src/Form/', $vars['class'] . '.php', $vars['machine_name']);
32-
$this->files[$path] = $this->render('d8/form-config.twig', $vars);
32+
$this->files[$path] = $this->render('d8/form/config.twig', $vars);
3333
}
3434

3535
/**

src/Commands/Drupal_8/Form/Confirm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected function interact(InputInterface $input, OutputInterface $output) {
2929
$vars = $this->collectVars($input, $output, $questions);
3030

3131
$path = $this->createPath('src/Form/', $vars['class'] . '.php', $vars['machine_name']);
32-
$this->files[$path] = $this->render('d8/form-confirm.twig', $vars);
32+
$this->files[$path] = $this->render('d8/form/confirm.twig', $vars);
3333
}
3434

3535
/**

src/Commands/Drupal_8/Form/Simple.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected function interact(InputInterface $input, OutputInterface $output) {
2929
$vars = $this->collectVars($input, $output, $questions);
3030

3131
$path = $this->createPath('src/Form/', $vars['class'] . '.php', $vars['machine_name']);
32-
$this->files[$path] = $this->render('d8/form-simple.twig', $vars);
32+
$this->files[$path] = $this->render('d8/form/simple.twig', $vars);
3333
}
3434

3535
/**

src/Commands/Drupal_8/Module/Standard.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ protected function interact(InputInterface $input, OutputInterface $output) {
3636
}
3737

3838
$prefix = $vars['machine_name'] . '/' . $vars['machine_name'];
39-
$this->files[$prefix . '.info.yml'] = $this->render('d8/module-info.yml.twig', $vars);
39+
$this->files[$prefix . '.info.yml'] = $this->render('d8/yml/module-info.yml.twig', $vars);
4040
$this->files[$prefix . '.module'] = $this->render('d8/module.twig', $vars);
4141
$this->files[$prefix . '.install'] = $this->render('d8/install.twig', $vars);
42-
$this->files[$prefix . '.libraries.yml'] = $this->render('d8/libraries.yml.twig', $vars);
43-
$this->files[$prefix . '.services.yml'] = $this->render('d8/services.yml.twig', $vars);
44-
$this->files[$prefix . '.permissions.yml'] = $this->render('d8/permissions.yml.twig', $vars);
42+
$this->files[$prefix . '.libraries.yml'] = $this->render('d8/yml/libraries.yml.twig', $vars);
43+
$this->files[$prefix . '.services.yml'] = $this->render('d8/yml/services.yml.twig', $vars);
44+
$this->files[$prefix . '.permissions.yml'] = $this->render('d8/yml/permissions.yml.twig', $vars);
4545
$this->files[$vars['machine_name'] . '/js/' . $vars['machine_name'] . '.js'] = $this->render('d8/javascript.twig', $vars);
4646

4747
$service_class = $this->human2class($vars['name'] . 'Example');
@@ -63,7 +63,7 @@ protected function interact(InputInterface $input, OutputInterface $output) {
6363
);
6464

6565
$this->files[$prefix . '.services.yml'] = $this->render(
66-
'd8/services.yml.twig',
66+
'd8/yml/services.yml.twig',
6767
$vars + ['class' => $this->human2class($vars['name'])]
6868
);
6969

@@ -78,12 +78,12 @@ protected function interact(InputInterface $input, OutputInterface $output) {
7878
);
7979

8080
$controller_class = $this->human2class($vars['name'] . 'Controller');
81-
$this->files[$prefix . '.routing.yml'] = $this->render('d8/routing.yml.twig', $vars + ['class' => $controller_class]);
81+
$this->files[$prefix . '.routing.yml'] = $this->render('d8/yml/routing.yml.twig', $vars + ['class' => $controller_class]);
8282
$controller_path = $vars['machine_name'] . "/src/Controller/$controller_class.php";
8383
$this->files[$controller_path] = $this->render('d8/controller.twig', $vars + ['class' => $controller_class]);
8484

8585
$form_path = $vars['machine_name'] . '/src/Form/SettingsForm.php';
86-
$this->files[$form_path] = $this->render('d8/form-config.twig', $vars + ['class' => 'SettingsForm']);
86+
$this->files[$form_path] = $this->render('d8/form/config.twig', $vars + ['class' => 'SettingsForm']);
8787

8888
}
8989

src/Commands/Drupal_8/Theme/Standard.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ protected function interact(InputInterface $input, OutputInterface $output) {
3636
$vars['project_type'] = 'theme';
3737

3838
$prefix = $vars['machine_name'] . '/' . $vars['machine_name'];
39-
$this->files[$prefix . '.info.yml'] = $this->render('d8/theme-info.yml.twig', $vars);
40-
$this->files[$prefix . '.libraries.yml'] = $this->render('d8/libraries.yml.twig', $vars);
39+
$this->files[$prefix . '.info.yml'] = $this->render('d8/yml/theme-info.yml.twig', $vars);
40+
$this->files[$prefix . '.libraries.yml'] = $this->render('d8/yml/libraries.yml.twig', $vars);
4141
$this->files[$prefix . '.theme'] = $this->render('d8/theme.twig', $vars);
4242
$this->files[$vars['machine_name'] . '/js/' . $vars['machine_name'] . '.js'] = $this->render('d8/javascript.twig', $vars);
4343
$this->files[$vars['machine_name'] . '/templates'] = NULL;

src/Commands/Drupal_8/Yml/Libraries.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function interact(InputInterface $input, OutputInterface $output) {
2626
'project_type' => ['Project type (module/theme)', 'module'],
2727
];
2828
$vars = $this->collectVars($input, $output, $questions);
29-
$this->files[$vars['machine_name'] . '.libraries.yml'] = $this->render('d8/libraries.yml.twig', $vars);
29+
$this->files[$vars['machine_name'] . '.libraries.yml'] = $this->render('d8/yml/libraries.yml.twig', $vars);
3030
}
3131

3232
}

src/Commands/Drupal_8/Yml/ModuleInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function interact(InputInterface $input, OutputInterface $output) {
3434
$vars['dependencies'] = explode(',', $vars['dependencies']);
3535
}
3636

37-
$this->files[$vars['machine_name'] . '.info.yml'] = $this->render('d8/module-info.yml.twig', $vars);
37+
$this->files[$vars['machine_name'] . '.info.yml'] = $this->render('d8/yml/module-info.yml.twig', $vars);
3838
}
3939

4040
}

src/Commands/Drupal_8/Yml/Permissions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function interact(InputInterface $input, OutputInterface $output) {
2626
];
2727
$vars = $this->collectVars($input, $output, $questions);
2828

29-
$this->files[$vars['machine_name'] . '.permissions.yml'] = $this->render('d8/permissions.yml.twig', $vars);
29+
$this->files[$vars['machine_name'] . '.permissions.yml'] = $this->render('d8/yml/permissions.yml.twig', $vars);
3030
}
3131

3232
}

src/Commands/Drupal_8/Yml/Routing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected function interact(InputInterface $input, OutputInterface $output) {
2727
$vars = $this->collectVars($input, $output, $questions);
2828

2929
$vars['class'] = $this->human2class($vars['name'] . 'Controller');
30-
$this->files[$vars['machine_name'] . '.routing.yml'] = $this->render('d8/routing.yml.twig', $vars);
30+
$this->files[$vars['machine_name'] . '.routing.yml'] = $this->render('d8/yml/routing.yml.twig', $vars);
3131
}
3232

3333
}

src/Commands/Drupal_8/Yml/Services.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected function interact(InputInterface $input, OutputInterface $output) {
2727

2828
$vars = $this->collectVars($input, $output, $questions);
2929
$vars['class'] = $this->human2class($vars['name']);
30-
$this->files[$vars['machine_name'] . '.services.yml'] = $this->render('d8/services.yml.twig', $vars);
30+
$this->files[$vars['machine_name'] . '.services.yml'] = $this->render('d8/yml/services.yml.twig', $vars);
3131
}
3232

3333
}

0 commit comments

Comments
 (0)