WordPress at a glance
function is not described

Composer\Installers

VgmcpInstaller::inflectPackageVars() public WC 1.0

Format package name.

For package type vgmcp-bundle, cut off a trailing '-bundle' if present.

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

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of VgmcpInstaller::inflectPackageVars() WC 5.3.0

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

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

    return $vars;
}