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

Breadcrumb

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

function Decisions::resetToOffset

Parameters

int<-1, max> $offset:

File

vendor/composer/composer/src/Composer/DependencyResolver/Decisions.php, line 143

Class

Decisions
Stores decisions on installing, removing or keeping packages

Namespace

Composer\DependencyResolver

Code

public function resetToOffset(int $offset) : void {
    while (\count($this->decisionQueue) > $offset + 1) {
        $decision = array_pop($this->decisionQueue);
        $this->decisionMap[abs($decision[self::DECISION_LITERAL])] = 0;
    }
}

API Navigation

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