ManageOptions
class ManageOptions (View source)
| internal |
Per-project options from the 'extras' section of the composer.json file.
Projects that describe scaffold files do so via their scaffold options. This data is pulled from the 'drupal-scaffold' portion of the extras section of the project data.
Properties
| protected Composer | $composer | The Composer service. |
Methods
ManageOptions constructor.
Gets the root-level scaffold options for this project.
Gets the scaffold options for the stipulated project.
Creates an interpolator for the 'locations' element.
Ensures that all of the locations defined in the scaffold files exist.
Details
__construct(Composer $composer)
ManageOptions constructor.
ScaffoldOptions
getOptions()
Gets the root-level scaffold options for this project.
ScaffoldOptions
packageOptions(PackageInterface $package)
Gets the scaffold options for the stipulated project.
Interpolator
getLocationReplacements()
Creates an interpolator for the 'locations' element.
The interpolator returned will replace a path string with the tokens defined in the 'locations' element.
Note that only the root package may define locations.
protected
ensureLocations()
Ensures that all of the locations defined in the scaffold files exist.
Create them on the filesystem if they do not.