function RootComposer::addToComposerLock

Adds an element to the composer lock.

Parameters

string $key: The key of the element to add.

array $data: The data to add.

File

composer/Plugin/RecipeUnpack/RootComposer.php, line 79

Class

RootComposer
Provides access to and manipulation of the root composer files.

Namespace

Drupal\Composer\Plugin\RecipeUnpack

Code

public function addToComposerLock(string $key, array $data) : void {
    $this->composerLockedContent[$key][] = $data;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.