function ComposerPluginsValidator::normalizePackageName

Normalizes a package name.

Parameters

string $package_name: A package name.

Return value

string The normalized package name.

File

core/modules/package_manager/src/Validator/ComposerPluginsValidator.php, line 124

Class

ComposerPluginsValidator
Validates the allowed Composer plugins, both in active and stage.

Namespace

Drupal\package_manager\Validator

Code

private static function normalizePackageName(string $package_name) : string {
    return strtolower($package_name);
}

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