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

Breadcrumb

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

function VgmcpInstaller::inflectPackageVars

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.

Overrides BaseInstaller::inflectPackageVars

File

vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php, line 21

Class

VgmcpInstaller

Namespace

Composer\Installers

Code

public function inflectPackageVars(array $vars) : array {
    if ($vars['type'] === 'vgmcp-bundle') {
        return $this->inflectPluginVars($vars);
    }
    if ($vars['type'] === 'vgmcp-theme') {
        return $this->inflectThemeVars($vars);
    }
    return $vars;
}

API Navigation

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