You are here

public function ManageOptions::getOptions in Drupal 10

Same name and namespace in other branches
  1. 8 composer/Plugin/Scaffold/ManageOptions.php \Drupal\Composer\Plugin\Scaffold\ManageOptions::getOptions()
  2. 9 composer/Plugin/Scaffold/ManageOptions.php \Drupal\Composer\Plugin\Scaffold\ManageOptions::getOptions()

Gets the root-level scaffold options for this project.

Return value

\Drupal\Composer\Plugin\Scaffold\ScaffoldOptions The scaffold options object.

1 call to ManageOptions::getOptions()
ManageOptions::ensureLocations in composer/Plugin/Scaffold/ManageOptions.php
Ensures that all of the locations defined in the scaffold files exist.

File

composer/Plugin/Scaffold/ManageOptions.php, line 43

Class

ManageOptions
Per-project options from the 'extras' section of the composer.json file.

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public function getOptions() {
  return $this
    ->packageOptions($this->composer
    ->getPackage());
}