You are here

public function PluginState::addDuplicateLinks in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/wikimedia/composer-merge-plugin/src/Merge/PluginState.php \Wikimedia\Composer\Merge\PluginState::addDuplicateLinks()

Add duplicate packages

Parameters

string $type Package type:

array $packages:

File

vendor/wikimedia/composer-merge-plugin/src/Merge/PluginState.php, line 269

Class

PluginState
Mutable plugin state

Namespace

Wikimedia\Composer\Merge

Code

public function addDuplicateLinks($type, array $packages) {
  if (!isset($this->duplicateLinks[$type])) {
    $this->duplicateLinks[$type] = array();
  }
  $this->duplicateLinks[$type] = array_merge($this->duplicateLinks[$type], $packages);
}