Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ScaffoldOptions.php

function ScaffoldOptions::__construct

ScaffoldOptions constructor.

Parameters

array $options: The scaffold options taken from the 'drupal-scaffold' section.

File

composer/Plugin/Scaffold/ScaffoldOptions.php, line 29

Class

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

Namespace

Drupal\Composer\Plugin\Scaffold

Code

protected function __construct(array $options) {
    $this->options = $options + [
        "allowed-packages" => [],
        "locations" => [],
        "symlink" => FALSE,
        "file-mapping" => [],
    ];
    // Define any default locations.
    $this->options['locations'] += [
        'project-root' => '.',
        'web-root' => '.',
    ];
}
RSS feed
Powered by Drupal