Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ComponentGenerator.php

function 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,
        ],
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal