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

Breadcrumb

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

function TastyIgniterInstaller::inflectThemeVars

Parameters

array<string, string> $vars:

array<string, mixed> $extra:

Return value

array<string, string>

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

File

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

Class

TastyIgniterInstaller

Namespace

Composer\Installers

Code

protected function inflectThemeVars(array $vars, array $extra) : array {
    if (!empty($extra['tastyigniter-theme']['code'])) {
        $vars['name'] = $extra['tastyigniter-theme']['code'];
    }
    $vars['name'] = $this->pregReplace('/^ti-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