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

Breadcrumb

  1. Drupal Core 11.1.x

PlentymarketsInstaller.php

Namespace

Composer\Installers

File

vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php

View source
<?php

namespace Composer\Installers;

class PlentymarketsInstaller extends BaseInstaller {
    
    /** @var array<string, string> */
    protected $locations = array(
        'plugin' => '{$name}/',
    );
    
    /**
     * Remove hyphen, "plugin" and format to camelcase
     */
    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;
    }

}

Classes

Title Deprecated Summary
PlentymarketsInstaller

API Navigation

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