function ScaffoldOptions::hasGitIgnore
Same name in other branches
- 9 composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::hasGitIgnore()
- 8.9.x composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::hasGitIgnore()
- 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\ScaffoldCode
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.