You are here

public function OctoberInstaller::inflectPackageVars in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

OctoberInstaller

Namespace

Composer\Installers

Code

public function inflectPackageVars($vars) {
  if ($vars['type'] === 'october-plugin') {
    return $this
      ->inflectPluginVars($vars);
  }
  if ($vars['type'] === 'october-theme') {
    return $this
      ->inflectThemeVars($vars);
  }
  return $vars;
}