You are here

public function ThemeGenerator::rewritePageTemplateLibrary 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::rewritePageTemplateLibrary()

Rewrite Page Template Library.

2 calls to ThemeGenerator::rewritePageTemplateLibrary()
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 370

Class

ThemeGenerator
Generator form.

Namespace

Drupal\at_theme_generator\Theme

Code

public function rewritePageTemplateLibrary() {
  $this->fileOperations
    ->fileStrReplace($this->target . '/templates/generated/page.html.twig', $this->source['name'], $this->machine_name);
}