function ScaffoldOptions::create
Creates a scaffold options object.
Parameters
array $extras: The contents of the 'extras' section.
Return value
self The scaffold options object representing the provided scaffold options
1 call to ScaffoldOptions::create()
- ManageOptions::packageOptions in composer/
Plugin/ Scaffold/ ManageOptions.php - Gets the scaffold options for the stipulated project.
File
-
composer/
Plugin/ Scaffold/ ScaffoldOptions.php, line 66
Class
- ScaffoldOptions
- Per-project options from the 'extras' section of the composer.json file.
Namespace
Drupal\Composer\Plugin\ScaffoldCode
public static function create(array $extras) {
$options = static::hasOptions($extras) ? $extras['drupal-scaffold'] : [];
return new self($options);
}