function UnpackOptions::create
Creates an unpack options object.
Parameters
array $extras: The contents of the 'extras' section.
Return value
self The unpack options object representing the provided unpack options
1 call to UnpackOptions::create()
- UnpackManager::__construct in composer/
Plugin/ RecipeUnpack/ UnpackManager.php
File
-
composer/
Plugin/ RecipeUnpack/ UnpackOptions.php, line 74
Class
- UnpackOptions
- Per-project options from the 'extras' section of the composer.json file.
Namespace
Drupal\Composer\Plugin\RecipeUnpackCode
public static function create(array $extras) : self {
$options = $extras[self::ID] ?? [];
return new self($options);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.