You are here

protected function DrupalCoreRecommendedBuilder::initialPackageMetadata in Drupal 10

Same name and namespace in other branches
  1. 8 composer/Generator/Builder/DrupalCoreRecommendedBuilder.php \Drupal\Composer\Generator\Builder\DrupalCoreRecommendedBuilder::initialPackageMetadata()
  2. 9 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" => "Core and its dependencies with known-compatible minor versions. Require this project INSTEAD OF drupal/core.",
    "license" => "GPL-2.0-or-later",
    "conflict" => [
      "webflo/drupal-core-strict" => "*",
    ],
    "require" => [
      "drupal/core" => Composer::drupalVersionBranch(),
    ],
  ];
}