You are here

protected function AsgardInstaller::inflectThemeVars in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php \Composer\Installers\AsgardInstaller::inflectThemeVars()
1 call to AsgardInstaller::inflectThemeVars()
AsgardInstaller::inflectPackageVars in vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php
Format package name.

File

vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php, line 39

Class

AsgardInstaller

Namespace

Composer\Installers

Code

protected function inflectThemeVars($vars) {
  $vars['name'] = ucfirst(preg_replace('/-theme$/', '', $vars['name']));
  return $vars;
}