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

Breadcrumb

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

function AsgardInstaller::inflectPackageVars

Format package name.

For package type asgard-module, cut off a trailing '-plugin' if present.

For package type asgard-theme, cut off a trailing '-theme' if present.

Overrides BaseInstaller::inflectPackageVars

File

vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php, line 20

Class

AsgardInstaller

Namespace

Composer\Installers

Code

public function inflectPackageVars(array $vars) : array {
    if ($vars['type'] === 'asgard-module') {
        return $this->inflectPluginVars($vars);
    }
    if ($vars['type'] === 'asgard-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