function DocParser::identifierStartsWithBackslash

Same name in other branches
  1. 11.x core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::identifierStartsWithBackslash()
1 call to DocParser::identifierStartsWithBackslash()
DocParser::Constant in core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php
Constant ::= integer | string | float | boolean

File

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

Class

DocParser
A parser for docblock annotations.

Namespace

Drupal\Component\Annotation\Doctrine

Code

private function identifierStartsWithBackslash(string $identifier) : bool {
    return '\\' === $identifier[0];
}

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