You are here

public function ScaffoldOptions::gitIgnore in Drupal 8

Same name and namespace in other branches
  1. 9 composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::gitIgnore()

Gets the value of the 'gitignore' option.

Return value

bool The 'gitignore' option, or TRUE if undefined.

File

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

Class

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

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public function gitIgnore() {
  return $this
    ->hasGitIgnore() ? $this->options['gitignore'] : TRUE;
}