You are here

public function ScaffoldOptions::hasGitIgnore in Drupal 8

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

Determines if there is defined a value for the 'gitignore' option.

Return value

bool Whether or not there is a 'gitignore' option setting

1 call to ScaffoldOptions::hasGitIgnore()
ScaffoldOptions::gitIgnore in composer/Plugin/Scaffold/ScaffoldOptions.php
Gets the value of the 'gitignore' option.

File

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

Class

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

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public function hasGitIgnore() {
  return isset($this->options['gitignore']);
}