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

Breadcrumb

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

function SpdxLicenses::getExceptionsExpression

Return value

string

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

File

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

Class

SpdxLicenses

Namespace

Composer\Spdx

Code

private function getExceptionsExpression() {
    if (null === $this->exceptionsExpression) {
        $exceptions = array_map('preg_quote', array_keys($this->exceptions));
        rsort($exceptions);
        $exceptions = implode('|', $exceptions);
        $this->exceptionsExpression = $exceptions;
    }
    return $this->exceptionsExpression;
}

API Navigation

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