function ComponentGenerator::initialPackageMetadata

Same name in other branches
  1. 9 composer/Generator/ComponentGenerator.php \Drupal\Composer\Generator\ComponentGenerator::initialPackageMetadata()
  2. 10 composer/Generator/ComponentGenerator.php \Drupal\Composer\Generator\ComponentGenerator::initialPackageMetadata()

Common default metadata for all components.

Return value

array An array containing the common default metadata for all components.

1 call to ComponentGenerator::initialPackageMetadata()
ComponentGenerator::getPackage in composer/Generator/ComponentGenerator.php
Reconcile component dependencies with core.

File

composer/Generator/ComponentGenerator.php, line 220

Class

ComponentGenerator
Reconciles Drupal component dependencies with core.

Namespace

Drupal\Composer\Generator

Code

protected function initialPackageMetadata() : array {
    return [
        'extra' => [
            '_readme' => [
                'This file was partially generated automatically. See: https://www.drupal.org/node/3293830',
            ],
        ],
        // Always reconcile PHP version.
'require' => [
            'php' => '>=' . \Drupal::MINIMUM_PHP,
        ],
    ];
}

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