WordPress at a glance
function is not described

Composer\Installers

CockpitInstaller::inflectPackageVars() public WC 1.0

Format module name.

Strip module- prefix from package name.

{@inheritDoc}

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of CockpitInstaller::inflectPackageVars() WC 5.3.0

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

    return $vars;
}