function ScaffoldOptions::allowedPackages

Same name in other branches
  1. 9 composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::allowedPackages()
  2. 8.9.x composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::allowedPackages()
  3. 10 composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::allowedPackages()

Gets allowed packages from these options.

Return value

array The list of allowed packages

1 call to ScaffoldOptions::allowedPackages()
ScaffoldOptions::hasAllowedPackages in composer/Plugin/Scaffold/ScaffoldOptions.php
Determines whether any allowed packages were defined.

File

composer/Plugin/Scaffold/ScaffoldOptions.php, line 113

Class

ScaffoldOptions
Per-project options from the 'extras' section of the composer.json file.

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public function allowedPackages() {
    return $this->options['allowed-packages'];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.