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

Breadcrumb

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

function TastyIgniterInstaller::inflectPackageVars

Format package name.

Cut off leading 'ti-ext-' or 'ti-theme-' if present. Strip vendor name of characters that is not alphanumeric or an underscore

Overrides BaseInstaller::inflectPackageVars

File

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

Class

TastyIgniterInstaller

Namespace

Composer\Installers

Code

public function inflectPackageVars(array $vars) : array {
    $extra = $this->package
        ->getExtra();
    if ($vars['type'] === 'tastyigniter-module') {
        return $this->inflectModuleVars($vars);
    }
    if ($vars['type'] === 'tastyigniter-extension') {
        return $this->inflectExtensionVars($vars, $extra);
    }
    if ($vars['type'] === 'tastyigniter-theme') {
        return $this->inflectThemeVars($vars, $extra);
    }
    return $vars;
}

API Navigation

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