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