function ManageOptions::packageOptions
Same name in other branches
- 9 composer/Plugin/Scaffold/ManageOptions.php \Drupal\Composer\Plugin\Scaffold\ManageOptions::packageOptions()
- 8.9.x composer/Plugin/Scaffold/ManageOptions.php \Drupal\Composer\Plugin\Scaffold\ManageOptions::packageOptions()
- 11.x composer/Plugin/Scaffold/ManageOptions.php \Drupal\Composer\Plugin\Scaffold\ManageOptions::packageOptions()
Gets the scaffold options for the stipulated project.
Parameters
\Composer\Package\PackageInterface $package: The package to fetch the scaffold options from.
Return value
\Drupal\Composer\Plugin\Scaffold\ScaffoldOptions The scaffold options object.
1 call to ManageOptions::packageOptions()
- ManageOptions::getOptions in composer/
Plugin/ Scaffold/ ManageOptions.php - Gets the root-level scaffold options for this project.
File
-
composer/
Plugin/ Scaffold/ ManageOptions.php, line 56
Class
- ManageOptions
- Per-project options from the 'extras' section of the composer.json file.
Namespace
Drupal\Composer\Plugin\ScaffoldCode
public function packageOptions(PackageInterface $package) {
return ScaffoldOptions::create($package->getExtra());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.