function ScaffoldOptions::hasGitIgnore

Same name in other branches
  1. 9 composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::hasGitIgnore()
  2. 10 composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::hasGitIgnore()
  3. 11.x 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']);
}

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