You are here

public function ScaffoldOptions::hasAllowedPackages in Drupal 10

Same name and namespace in other branches
  1. 8 composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::hasAllowedPackages()
  2. 9 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\Scaffold

Code

public function hasAllowedPackages() {
  return !empty($this
    ->allowedPackages());
}