function ComposerValidator::getHelpUrl

Returns a URL to a specific fragment of Package Manager's online help.

Parameters

string $fragment: The fragment to link to.

Return value

string A URL to Package Manager's online help.

1 call to ComposerValidator::getHelpUrl()
ComposerValidator::validate in core/modules/package_manager/src/Validator/ComposerValidator.php
Validates that the Composer executable is the correct version.

File

core/modules/package_manager/src/Validator/ComposerValidator.php, line 141

Class

ComposerValidator
Validates the project can be used by the Composer Inspector.

Namespace

Drupal\package_manager\Validator

Code

private static function getHelpUrl(string $fragment) : string {
    return Url::fromRoute('help.page', [
        'name' => 'package_manager',
    ])->setOption('fragment', $fragment)
        ->toString();
}

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