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

Breadcrumb

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

function PackageInfo::getViewSourceOrHomepageUrl

4 calls to PackageInfo::getViewSourceOrHomepageUrl()
Auditor::getPackageNameWithLink in vendor/composer/composer/src/Composer/Advisory/Auditor.php
BaseDependencyCommand::printTable in vendor/composer/composer/src/Composer/Command/BaseDependencyCommand.php
Assembles and prints a bottom-up table of the dependencies.
BaseDependencyCommand::printTree in vendor/composer/composer/src/Composer/Command/BaseDependencyCommand.php
Recursively prints a tree of the selected results.
LicensesCommand::execute in vendor/composer/composer/src/Composer/Command/LicensesCommand.php
Executes the current command.

File

vendor/composer/composer/src/Composer/Util/PackageInfo.php, line 29

Class

PackageInfo

Namespace

Composer\Util

Code

public static function getViewSourceOrHomepageUrl(PackageInterface $package) : ?string {
    $url = self::getViewSourceUrl($package) ?? ($package instanceof CompletePackageInterface ? $package->getHomepage() : null);
    if ($url === '') {
        return null;
    }
    return $url;
}

API Navigation

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