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

Breadcrumb

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

function PluginInstaller::rollbackInstall

2 calls to PluginInstaller::rollbackInstall()
PluginInstaller::install in vendor/composer/composer/src/Composer/Installer/PluginInstaller.php
@inheritDoc
PluginInstaller::update in vendor/composer/composer/src/Composer/Installer/PluginInstaller.php
@inheritDoc

File

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

Class

PluginInstaller
Installer for plugin packages

Namespace

Composer\Installer

Code

private function rollbackInstall(\Exception $e, InstalledRepositoryInterface $repo, PackageInterface $package) : void {
    $this->io
        ->writeError('Plugin initialization failed (' . $e->getMessage() . '), uninstalling plugin');
    parent::uninstall($repo, $package);
    throw $e;
}

API Navigation

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