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

Breadcrumb

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

function SelfUpdateCommand::getLastBackupVersion

2 calls to SelfUpdateCommand::getLastBackupVersion()
SelfUpdateCommand::execute in vendor/composer/composer/src/Composer/Command/SelfUpdateCommand.php
SelfUpdateCommand::rollback in vendor/composer/composer/src/Composer/Command/SelfUpdateCommand.php

File

vendor/composer/composer/src/Composer/Command/SelfUpdateCommand.php, line 515

Class

SelfUpdateCommand
@author Igor Wiedler <igor@wiedler.ch> @author Kevin Ran <kran@adobe.com> @author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Command

Code

protected function getLastBackupVersion(string $rollbackDir) : ?string {
    $finder = $this->getOldInstallationFinder($rollbackDir);
    $finder->sortByName();
    $files = iterator_to_array($finder);
    if (count($files) > 0) {
        return end($files)->getBasename(self::OLD_INSTALL_EXT);
    }
    return null;
}

API Navigation

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