WordPress at a glance
function is not described


MediaWikiInstaller::inflectPackageVars() public WC 1.0

Format package name.

For package type mediawiki-extension, cut off a trailing '-extension' if present and transform to CamelCase keeping existing uppercase chars.

For package type mediawiki-skin, cut off a trailing '-skin' if present.

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

No Hooks.


null. Nothing.


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

Code of MediaWikiInstaller::inflectPackageVars() WC 5.3.0

public function inflectPackageVars($vars)

    if ($vars['type'] === 'mediawiki-extension') {
        return $this->inflectExtensionVars($vars);

    if ($vars['type'] === 'mediawiki-skin') {
        return $this->inflectSkinVars($vars);

    return $vars;