function ScaffoldOptions::hasAllowedPackages
Same name in other branches
- 8.9.x composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::hasAllowedPackages()
- 10 composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::hasAllowedPackages()
- 11.x composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::hasAllowedPackages()
Determines whether any allowed packages were defined.
Return value
bool Whether there are allowed packages
File
-
composer/
Plugin/ Scaffold/ ScaffoldOptions.php, line 103
Class
- ScaffoldOptions
- Per-project options from the 'extras' section of the composer.json file.
Namespace
Drupal\Composer\Plugin\ScaffoldCode
public function hasAllowedPackages() {
return !empty($this->allowedPackages());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.