WordPress at a glance
function is not described

Composer\Installers

SyDESInstaller::inflectPackageVars() public WC 1.0

Format module name.

Strip sydes- prefix and a trailing '-theme' or '-module' from package name if present.

{@inerhitDoc}

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

No Hooks.

Return

Null. Nothing.

Usage

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

Code of SyDESInstaller::inflectPackageVars() WC 5.0.0

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

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

    return $vars;
}