public function AsgardInstaller::inflectPackageVars in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php \Composer\Installers\AsgardInstaller::inflectPackageVars()
Format package name.
For package type asgard-module, cut off a trailing '-plugin' if present.
For package type asgard-theme, cut off a trailing '-theme' if present.
Overrides BaseInstaller::inflectPackageVars
File
- vendor/
composer/ installers/ src/ Composer/ Installers/ AsgardInstaller.php, line 19
Class
Namespace
Composer\InstallersCode
public function inflectPackageVars($vars) {
if ($vars['type'] === 'asgard-module') {
return $this
->inflectPluginVars($vars);
}
if ($vars['type'] === 'asgard-theme') {
return $this
->inflectThemeVars($vars);
}
return $vars;
}