function UnpackOptions::isIgnored
Checks if a package should be ignored.
Parameters
\Composer\Package\PackageInterface $package: The package.
Return value
bool TRUE if the package should be ignored, FALSE if not.
File
-
composer/
Plugin/ RecipeUnpack/ UnpackOptions.php, line 61
Class
- UnpackOptions
- Per-project options from the 'extras' section of the composer.json file.
Namespace
Drupal\Composer\Plugin\RecipeUnpackCode
public function isIgnored(PackageInterface $package) : bool {
return in_array($package->getName(), $this->options['ignore'], TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.