You are here

public function DrupalCoreComposer::rootComposerJson in Drupal 10

Same name and namespace in other branches
  1. 8 composer/Generator/Util/DrupalCoreComposer.php \Drupal\Composer\Generator\Util\DrupalCoreComposer::rootComposerJson()
  2. 9 composer/Generator/Util/DrupalCoreComposer.php \Drupal\Composer\Generator\Util\DrupalCoreComposer::rootComposerJson()

Fetch the composer data from the root drupal/drupal project.

Return value

array Composer json data

1 call to DrupalCoreComposer::rootComposerJson()
DrupalCoreComposer::getRequireDev in composer/Generator/Util/DrupalCoreComposer.php
Return the "require-dev" section from root or core composer.json file.

File

composer/Generator/Util/DrupalCoreComposer.php, line 61

Class

DrupalCoreComposer
Utilities for accessing composer.json data from drupal/drupal and drupal/core.

Namespace

Drupal\Composer\Generator\Util

Code

public function rootComposerJson() {
  return $this->composerJson;
}