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

Breadcrumb

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

function PluginInstaller::download

@inheritDoc

Overrides LibraryInstaller::download

File

vendor/composer/composer/src/Composer/Installer/PluginInstaller.php, line 67

Class

PluginInstaller
Installer for plugin packages

Namespace

Composer\Installer

Code

public function download(PackageInterface $package, ?PackageInterface $prevPackage = null) {
    $extra = $package->getExtra();
    if (empty($extra['class'])) {
        throw new \UnexpectedValueException('Error while installing ' . $package->getPrettyName() . ', composer-plugin packages should have a class defined in their extra key to be usable.');
    }
    return parent::download($package, $prevPackage);
}

API Navigation

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