You are here

protected function DrupalCoreRecommendedBuilder::initialPackageMetadata in Drupal 9

Same name and namespace in other branches
  1. 8 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(),
    ],
  ];
}