public function ThemeGenerator::renameLayouts in AT Tools 8.3
Rename layouts.
1 call to ThemeGenerator::renameLayouts()
- ThemeGeneratorTypes::starterkitGenerator in at_theme_generator/
src/ Theme/ ThemeGeneratorTypes.php - Generate starter kit type theme.
File
- at_theme_generator/
src/ Theme/ ThemeGenerator.php, line 371
Class
- ThemeGenerator
- Generator form.
Namespace
Drupal\at_theme_generator\ThemeCode
public function renameLayouts() {
if ($this->layout === 'flex') {
$rename_dir['page-layout'] = 'page-layout-flex';
$rename_dir['plugin-layout'] = 'plugin-layout-flex';
}
else {
$rename_dir['page-layout'] = 'page-layout-float';
$rename_dir['plugin-layout'] = 'plugin-layout-float';
}
foreach ($rename_dir as $key => $value) {
$this->fileOperations
->fileRename($this->target . '/layout/' . $value, $this->target . '/layout/' . $key);
}
}