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

Breadcrumb

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

function Locker::getPreferLowest

File

vendor/composer/composer/src/Composer/Package/Locker.php, line 287

Class

Locker
Reads/writes project lockfile (composer.lock).

Namespace

Composer\Package

Code

public function getPreferLowest() : ?bool {
    $lockData = $this->getLockData();
    // return null if not set to allow caller logic to choose the
    // right behavior since old lock files have no prefer-lowest
    return $lockData['prefer-lowest'] ?? null;
}

API Navigation

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