function DocParser::Value

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::Value()

Value ::= PlainValue | FieldAssignment

Return value

mixed

File

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

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.