function DrupalCoreRecommendedBuilder::initialPackageMetadata

Same name in other branches
  1. 9 composer/Generator/Builder/DrupalCoreRecommendedBuilder.php \Drupal\Composer\Generator\Builder\DrupalCoreRecommendedBuilder::initialPackageMetadata()
  2. 10 composer/Generator/Builder/DrupalCoreRecommendedBuilder.php \Drupal\Composer\Generator\Builder\DrupalCoreRecommendedBuilder::initialPackageMetadata()
  3. 11.x composer/Generator/Builder/DrupalCoreRecommendedBuilder.php \Drupal\Composer\Generator\Builder\DrupalCoreRecommendedBuilder::initialPackageMetadata()

Returns the initial package metadata that describes the metapackage.

Return value

array

1 call to DrupalCoreRecommendedBuilder::initialPackageMetadata()
DrupalCoreRecommendedBuilder::getPackage in composer/Generator/Builder/DrupalCoreRecommendedBuilder.php
Generate the Composer.json data for the current tag or branch.

File

composer/Generator/Builder/DrupalCoreRecommendedBuilder.php, line 55

Class

DrupalCoreRecommendedBuilder
Builder to produce metapackage for drupal/core-recommended.

Namespace

Drupal\Composer\Generator\Builder

Code

protected function initialPackageMetadata() {
    return [
        "name" => "drupal/core-recommended",
        "type" => "metapackage",
        "description" => "Locked core dependencies; require this project INSTEAD OF drupal/core.",
        "license" => "GPL-2.0-or-later",
        "conflict" => [
            "webflo/drupal-core-strict" => "*",
        ],
        "require" => [
            "drupal/core" => Composer::drupalVersionBranch(),
        ],
    ];
}

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