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

Breadcrumb

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

function WinterInstaller::inflectThemeVars

Parameters

array<string, string> $vars:

Return value

array<string, string>

1 call to WinterInstaller::inflectThemeVars()
WinterInstaller::inflectPackageVars in vendor/composer/installers/src/Composer/Installers/WinterInstaller.php
Format package name.

File

vendor/composer/installers/src/Composer/Installers/WinterInstaller.php, line 65

Class

WinterInstaller

Namespace

Composer\Installers

Code

protected function inflectThemeVars(array $vars) : array {
    $vars['name'] = $this->pregReplace('/^wn-|-theme$/', '', $vars['name']);
    return $vars;
}

API Navigation

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