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

Breadcrumb

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

function MicroweberInstaller::inflectTemplatesVars

Parameters

array<string, string> $vars:

Return value

array<string, string>

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

File

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

Class

MicroweberInstaller

Namespace

Composer\Installers

Code

protected function inflectTemplatesVars(array $vars) : array {
    $vars['install_item_dir'] = $this->pregReplace('/-templates$/', '', $vars['install_item_dir']);
    $vars['install_item_dir'] = $this->pregReplace('/templates-$/', '', $vars['install_item_dir']);
    return $vars;
}

API Navigation

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