You are here

protected function MicroweberInstaller::inflectElementVars in Zircon Profile 8.0

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

File

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

Class

MicroweberInstaller

Namespace

Composer\Installers

Code

protected function inflectElementVars($vars) {
  $vars['name'] = preg_replace('/-elements$/', '', $vars['name']);
  $vars['name'] = preg_replace('/elements-$/', '', $vars['name']);
  $vars['name'] = preg_replace('/-element$/', '', $vars['name']);
  $vars['name'] = preg_replace('/element-$/', '', $vars['name']);
  return $vars;
}