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

Breadcrumb

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

function ExpressionParser::parseMultitargetExpression

File

vendor/twig/twig/src/ExpressionParser.php, line 722

Class

ExpressionParser
Parses expressions.

Namespace

Twig

Code

public function parseMultitargetExpression() {
    $targets = [];
    while (true) {
        $targets[] = $this->parseExpression();
        if (!$this->parser
            ->getStream()
            ->nextIf(Token::PUNCTUATION_TYPE, ',')) {
            break;
        }
    }
    return new Nodes($targets);
}

API Navigation

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