public function ThemeGenerator::rewriteThemeFile in AT Tool 2.0 1.0.x
Rewrite the [theme_name].theme file to replace stings.
Parameters
$needle:
2 calls to ThemeGenerator::rewriteThemeFile()
- 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 184
Class
- ThemeGenerator
- Generator form.
Namespace
Drupal\at_theme_generator\ThemeCode
public function rewriteThemeFile($needle) {
$this->fileOperations
->fileStrReplace($this->target . '/' . $this->machine_name . '.theme', $needle, $this->machine_name);
}