function ScaffoldOptions::override

Same name in other branches
  1. 8.9.x composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::override()
  2. 10 composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::override()
  3. 11.x composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::override()

Creates a new scaffold options object with some values overridden.

Parameters

array $options: Override values.

Return value

self The scaffold options object representing the provided scaffold options

1 call to ScaffoldOptions::override()
ScaffoldOptions::overrideSymlink in composer/Plugin/Scaffold/ScaffoldOptions.php
Creates a new scaffold options object with an overridden 'symlink' value.

File

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

Class

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

Namespace

Drupal\Composer\Plugin\Scaffold

Code

protected function override(array $options) {
    return new self($options + $this->options);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.