WordPress at a glance
function is not described

Composer\Installers

AsgardInstaller::inflectPackageVars() public WC 1.0

Format package name.

For package type asgard-module, cut off a trailing '-plugin' if present.

For package type asgard-theme, cut off a trailing '-theme' if present.

{} It's a method of the class: AsgardInstaller{}

No Hooks.

Return

null. Nothing.

Usage

$AsgardInstaller = new AsgardInstaller();
$AsgardInstaller->inflectPackageVars( $vars );
$vars (required)
-

Code of AsgardInstaller::inflectPackageVars() WC 5.2.2

<?php
public function inflectPackageVars($vars)
{
    if ($vars['type'] === 'asgard-module') {
        return $this->inflectPluginVars($vars);
    }

    if ($vars['type'] === 'asgard-theme') {
        return $this->inflectThemeVars($vars);
    }

    return $vars;
}