You are here

protected function MicroweberInstaller::inflectModulesVars in Zircon Profile 8

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

File

vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php, line 86

Class

MicroweberInstaller

Namespace

Composer\Installers

Code

protected function inflectModulesVars($vars) {
  $vars['name'] = preg_replace('/-modules$/', '', $vars['name']);
  $vars['name'] = preg_replace('/modules-$/', '', $vars['name']);
  return $vars;
}