function DocParser::Value

Same name in other branches
  1. 9 core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::Value()
  2. 8.9.x core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::Value()
  3. 11.x core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::Value()

Value ::= PlainValue | FieldAssignment

Return value

mixed

2 calls to DocParser::Value()
DocParser::ArrayEntry in core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php
ArrayEntry ::= Value | KeyValuePair KeyValuePair ::= Key ("=" | ":") PlainValue | Constant Key ::= string | integer | Constant
DocParser::Values in core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php
Values ::= Array | Value {"," Value}* [","]

File

core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php, line 1012

Class

DocParser
A parser for docblock annotations.

Namespace

Drupal\Component\Annotation\Doctrine

Code

private function Value() {
    $peek = $this->lexer
        ->glimpse();
    if (DocLexer::T_EQUALS === $peek['type']) {
        return $this->FieldAssignment();
    }
    return $this->PlainValue();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.