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

Breadcrumb

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

function DokuWikiInstaller::inflectPackageVars

Format package name.

For package type dokuwiki-plugin, cut off a trailing '-plugin', or leading dokuwiki_ if present.

For package type dokuwiki-template, cut off a trailing '-template' if present.

Overrides BaseInstaller::inflectPackageVars

File

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

Class

DokuWikiInstaller

Namespace

Composer\Installers

Code

public function inflectPackageVars(array $vars) : array {
    if ($vars['type'] === 'dokuwiki-plugin') {
        return $this->inflectPluginVars($vars);
    }
    if ($vars['type'] === 'dokuwiki-template') {
        return $this->inflectTemplateVars($vars);
    }
    return $vars;
}

API Navigation

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