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

Breadcrumb

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

function Application::getLongVersion

Same name in this branch
  1. 11.1.x vendor/symfony/console/Application.php \Symfony\Component\Console\Application::getLongVersion()

Overrides Application::getLongVersion

File

vendor/composer/composer/src/Composer/Console/Application.php, line 634

Class

Application
The console application that handles the commands

Namespace

Composer\Console

Code

public function getLongVersion() : string {
    $branchAliasString = '';
    if (Composer::BRANCH_ALIAS_VERSION && Composer::BRANCH_ALIAS_VERSION !== '@package_branch_alias_version' . '@') {
        $branchAliasString = sprintf(' (%s)', Composer::BRANCH_ALIAS_VERSION);
    }
    return sprintf('<info>%s</info> version <comment>%s%s</comment> %s', $this->getName(), $this->getVersion(), $branchAliasString, Composer::RELEASE_DATE);
}

API Navigation

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