You are here

public function ThemeGenerator::renameLayoutPlugin in AT Tools 8.2

1 call to ThemeGenerator::renameLayoutPlugin()
ThemeGeneratorTypes::starterkitGenerator in at_theme_generator/src/Theme/ThemeGeneratorTypes.php
Generate starter kit type theme.

File

at_theme_generator/src/Theme/ThemeGenerator.php, line 354

Class

ThemeGenerator
Generator form.

Namespace

Drupal\at_theme_generator\Theme

Code

public function renameLayoutPlugin() {
  if ($this->layout === 'flex') {
    $layout_plugin_to_rename = 'layout_plugin_flex';
  }
  else {
    $layout_plugin_to_rename = 'layout_plugin_floats';
  }
  $this->fileOperations
    ->fileRename($this->target . '/styles/' . $layout_plugin_to_rename, $this->target . '/styles/' . 'layout_plugin');
}