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

Breadcrumb

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

function VersionConstraintParser::handleOrGroup

1 call to VersionConstraintParser::handleOrGroup()
VersionConstraintParser::parse in vendor/phar-io/version/src/VersionConstraintParser.php

File

vendor/phar-io/version/src/VersionConstraintParser.php, line 58

Class

VersionConstraintParser

Namespace

PharIo\Version

Code

private function handleOrGroup(string $value) : OrVersionConstraintGroup {
    $constraints = [];
    foreach (\preg_split('{\\s*\\|\\|?\\s*}', \trim($value)) as $groupSegment) {
        $constraints[] = $this->parse(\trim($groupSegment));
    }
    return new OrVersionConstraintGroup($value, $constraints);
}

API Navigation

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