Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MediaWikiInstaller.php

function MediaWikiInstaller::inflectPackageVars

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.

Overrides BaseInstaller::inflectPackageVars

File

vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php, line 22

Class

MediaWikiInstaller

Namespace

Composer\Installers

Code

public function inflectPackageVars(array $vars) : array {
    if ($vars['type'] === 'mediawiki-extension') {
        return $this->inflectExtensionVars($vars);
    }
    if ($vars['type'] === 'mediawiki-skin') {
        return $this->inflectSkinVars($vars);
    }
    return $vars;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal