You are here

public function ManageOptions::packageOptions in Drupal 10

Same name and namespace in other branches
  1. 8 composer/Plugin/Scaffold/ManageOptions.php \Drupal\Composer\Plugin\Scaffold\ManageOptions::packageOptions()
  2. 9 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\Scaffold

Code

public function packageOptions(PackageInterface $package) {
  return ScaffoldOptions::create($package
    ->getExtra());
}