public function ThemeGenerator::rewriteThemeSettingsFile in AT Tools 8.2
Same name and namespace in other branches
- 8.3 at_theme_generator/src/Theme/ThemeGenerator.php \Drupal\at_theme_generator\Theme\ThemeGenerator::rewriteThemeSettingsFile()
Rewrite the theme-settings.php file to replace stings.
Parameters
$needle:
2 calls to ThemeGenerator::rewriteThemeSettingsFile()
- ThemeGeneratorTypes::cloneGenerator in at_theme_generator/
src/ Theme/ ThemeGeneratorTypes.php - Generate clone type theme.
- ThemeGeneratorTypes::starterkitGenerator in at_theme_generator/
src/ Theme/ ThemeGeneratorTypes.php - Generate starter kit type theme.
File
- at_theme_generator/
src/ Theme/ ThemeGenerator.php, line 188
Class
- ThemeGenerator
- Generator form.
Namespace
Drupal\at_theme_generator\ThemeCode
public function rewriteThemeSettingsFile($needle) {
$this->fileOperations
->fileStrReplace($this->target . '/theme-settings.php', $needle, $this->machine_name);
}