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

Breadcrumb

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

function PlentymarketsInstaller::inflectPackageVars

Remove hyphen, "plugin" and format to camelcase

Overrides BaseInstaller::inflectPackageVars

File

vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php, line 15

Class

PlentymarketsInstaller

Namespace

Composer\Installers

Code

public function inflectPackageVars(array $vars) : array {
    $nameBits = explode("-", $vars['name']);
    foreach ($nameBits as $key => $name) {
        $nameBits[$key] = ucfirst($name);
        if (strcasecmp($name, "Plugin") == 0) {
            unset($nameBits[$key]);
        }
    }
    $vars['name'] = implode('', $nameBits);
    return $vars;
}

API Navigation

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