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

Breadcrumb

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

function CakePHPInstaller::getLocations

Change the default plugin location when cakephp >= 3.0

Overrides BaseInstaller::getLocations

File

vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php, line 38

Class

CakePHPInstaller

Namespace

Composer\Installers

Code

public function getLocations(string $frameworkType) : array {
    if ($this->matchesCakeVersion('>=', '3.0.0')) {
        $this->locations['plugin'] = $this->composer
            ->getConfig()
            ->get('vendor-dir') . '/{$vendor}/{$name}/';
    }
    return $this->locations;
}

API Navigation

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