public static function ScaffoldOptions::hasOptions in Drupal 10
Same name and namespace in other branches
- 8 composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::hasOptions()
- 9 composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::hasOptions()
Determines if the provided 'extras' section has scaffold options.
Parameters
array $extras: The contents of the 'extras' section.
Return value
bool True if scaffold options have been declared
2 calls to ScaffoldOptions::hasOptions()
- AllowedPackages::event in composer/
Plugin/ Scaffold/ AllowedPackages.php - Handles package events during a 'composer require' operation.
- ScaffoldOptions::create in composer/
Plugin/ Scaffold/ ScaffoldOptions.php - Creates a scaffold options object.
File
- composer/
Plugin/ Scaffold/ ScaffoldOptions.php, line 53
Class
- ScaffoldOptions
- Per-project options from the 'extras' section of the composer.json file.
Namespace
Drupal\Composer\Plugin\ScaffoldCode
public static function hasOptions(array $extras) {
return array_key_exists('drupal-scaffold', $extras);
}