You are here

public function ThemeGenerator::rewriteLibrariesYml in AT Tools 8.3

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

Rewrite library versions in [theme_name].libraries.yml.

Parameters

$needle:

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

File

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

Class

ThemeGenerator
Generator form.

Namespace

Drupal\at_theme_generator\Theme

Code

public function rewriteLibrariesYml($needle) {
  $this->fileOperations
    ->fileStrReplace($this->target . '/' . $this->machine_name . '.libraries.yml', $needle, $this->version);
}