function ScaffoldOptions::overrideSymlink

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

Creates a new scaffold options object with an overridden 'symlink' value.

Parameters

bool $symlink: Whether symlinking should be enabled or not.

Return value

self The scaffold options object representing the provided scaffold options

File

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

Class

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

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public function overrideSymlink($symlink) {
    return $this->override([
        'symlink' => $symlink,
    ]);
}

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