You are here

public function PackageManager::getCorePackage in Composer Manager 8

Returns the core package.

Return value

array The core package, loaded from core/composer.json.

Overrides PackageManagerInterface::getCorePackage

File

src/PackageManager.php, line 37

Class

PackageManager
Manages composer packages.

Namespace

Drupal\composer_manager

Code

public function getCorePackage() {
  if (!isset($this->packages['core'])) {
    $this->packages['core'] = JsonFile::read($this->root . '/core/composer.json');
  }
  return $this->packages['core'];
}