You are here

public function ThemeGenerator::processSkinStyles in AT Tools 8.2

Same name and namespace in other branches
  1. 8.3 at_theme_generator/src/Theme/ThemeGenerator.php \Drupal\at_theme_generator\Theme\ThemeGenerator::processSkinStyles()

Rename Skin styles & library declarations.

Parameters

$type:

2 calls to ThemeGenerator::processSkinStyles()
ThemeGeneratorTypes::cloneGenerator in at_theme_generator/src/Theme/ThemeGeneratorTypes.php
Generate clone type theme.
ThemeGeneratorTypes::skinGenerator in at_theme_generator/src/Theme/ThemeGeneratorTypes.php
Generate skin type theme.

File

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

Class

ThemeGenerator
Generator form.

Namespace

Drupal\at_theme_generator\Theme

Code

public function processSkinStyles($type) {
  $this->fileOperations
    ->fileRename($this->target . '/styles/css/' . $type . '.css', $this->target . '/styles/css/' . $this->machine_name . '.css');
  $this->fileOperations
    ->fileRename($this->target . '/styles/scss/' . $type . '.scss', $this->target . '/styles/scss/' . $this->machine_name . '.scss');
  $this->fileOperations
    ->fileStrReplace($this->target . '/' . $this->machine_name . '.libraries.yml', $type, $this->machine_name);
}