Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Auditor.php

function Auditor::getPackageNameWithLink

1 call to Auditor::getPackageNameWithLink()
Auditor::outputAbandonedPackages in vendor/composer/composer/src/Composer/Advisory/Auditor.php

File

vendor/composer/composer/src/Composer/Advisory/Auditor.php, line 371

Class

Auditor
@internal

Namespace

Composer\Advisory

Code

private function getPackageNameWithLink(PackageInterface $package) : string {
    $packageUrl = PackageInfo::getViewSourceOrHomepageUrl($package);
    return $packageUrl !== null ? '<href=' . OutputFormatter::escape($packageUrl) . '>' . $package->getPrettyName() . '</>' : $package->getPrettyName();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal