You are here

public function ThemeGenerator::removeUnusedLayout in AT Tool 2.0 1.0.x

Remove unused layout directory and files.

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

File

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

Class

ThemeGenerator
Generator form.

Namespace

Drupal\at_theme_generator\Theme

Code

public function removeUnusedLayout() {
  if ($this->layout === 'flex') {
    $remove[] = 'page-layout-float';
    $remove[] = 'plugin-layout-float';
  }
  else {
    $remove[] = 'page-layout-flex';
    $remove[] = 'plugin-layout-flex';
  }
  foreach ($remove as $key => $value) {
    $this->directoryOperations
      ->directoryRemove($this->target . '/layout/' . $value);
  }
}