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

Breadcrumb

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

function AliasPackage::__toString

Overrides BasePackage::__toString

File

vendor/composer/composer/src/Composer/Package/AliasPackage.php, line 220

Class

AliasPackage
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Package

Code

public function __toString() : string {
    return parent::__toString() . ' (' . ($this->rootPackageAlias ? 'root ' : '') . 'alias of ' . $this->aliasOf
        ->getVersion() . ')';
}

API Navigation

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