function InstalledPackagesList::getCorePackageList

Returns the canonical names of the supported core packages.

Return value

string[] The canonical list of supported core package names.

1 call to InstalledPackagesList::getCorePackageList()
InstalledPackagesList::getCorePackages in core/modules/package_manager/src/InstalledPackagesList.php
Returns a list of installed core packages.

File

core/modules/package_manager/src/InstalledPackagesList.php, line 131

Class

InstalledPackagesList
Defines a class to list installed Composer packages.

Namespace

Drupal\package_manager

Code

private static function getCorePackageList() : array {
    // This method returns the installed packages that are considered part of
    // Drupal core. There's no way to tell by package type alone, since these
    // packages have varying types, but are all part of Drupal core's
    // repository.
    return [
        'drupal/core',
        'drupal/core-composer-scaffold',
        'drupal/core-dev',
        'drupal/core-dev-pinned',
        'drupal/core-project-message',
        'drupal/core-recommended',
        'drupal/core-vendor-hardening',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.