Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ScaffoldOptions.php

function 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']);
}
RSS feed
Powered by Drupal