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

Breadcrumb

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

function SpdxLicenses::getLicensesExpression

Return value

string

1 call to SpdxLicenses::getLicensesExpression()
SpdxLicenses::isValidLicenseString in vendor/composer/spdx-licenses/src/SpdxLicenses.php

File

vendor/composer/spdx-licenses/src/SpdxLicenses.php, line 262

Class

SpdxLicenses

Namespace

Composer\Spdx

Code

private function getLicensesExpression() {
    if (null === $this->licensesExpression) {
        $licenses = array_map('preg_quote', array_keys($this->licenses));
        rsort($licenses);
        $licenses = implode('|', $licenses);
        $this->licensesExpression = $licenses;
    }
    return $this->licensesExpression;
}

API Navigation

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