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

Breadcrumb

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

function DocParser::Value

Same name in this branch
  1. 11.1.x vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php \Doctrine\Common\Annotations\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();
}
RSS feed
Powered by Drupal