You are here

protected function DrupalPinnedDevDependenciesBuilder::initialPackageMetadata in Drupal 10

Same name and namespace in other branches
  1. 8 composer/Generator/Builder/DrupalPinnedDevDependenciesBuilder.php \Drupal\Composer\Generator\Builder\DrupalPinnedDevDependenciesBuilder::initialPackageMetadata()
  2. 9 composer/Generator/Builder/DrupalPinnedDevDependenciesBuilder.php \Drupal\Composer\Generator\Builder\DrupalPinnedDevDependenciesBuilder::initialPackageMetadata()

Returns the initial package metadata that describes the metapackage.

Return value

array

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

File

composer/Generator/Builder/DrupalPinnedDevDependenciesBuilder.php, line 43

Class

DrupalPinnedDevDependenciesBuilder
Builder to produce metapackage for drupal/core-dev-pinned.

Namespace

Drupal\Composer\Generator\Builder

Code

protected function initialPackageMetadata() {
  return [
    "name" => "drupal/core-dev-pinned",
    "type" => "metapackage",
    "description" => "Pinned require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.",
    "license" => "GPL-2.0-or-later",
    "conflict" => [
      "webflo/drupal-core-require-dev" => "*",
    ],
    "require" => [
      "drupal/core" => Composer::drupalVersionBranch(),
    ],
  ];
}