function ForkCMSInstaller::inflectPackageVars
Format package name.
For package type fork-cms-module, cut off a trailing '-plugin' if present.
For package type fork-cms-theme, cut off a trailing '-theme' if present.
Overrides BaseInstaller::inflectPackageVars
File
-
vendor/
composer/ installers/ src/ Composer/ Installers/ ForkCMSInstaller.php, line 20
Class
Namespace
Composer\InstallersCode
public function inflectPackageVars(array $vars) : array {
if ($vars['type'] === 'fork-cms-module') {
return $this->inflectModuleVars($vars);
}
if ($vars['type'] === 'fork-cms-theme') {
return $this->inflectThemeVars($vars);
}
return $vars;
}