function DocParser::getClassConstantPositionInIdentifier

Same name in other branches
  1. 10 core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::getClassConstantPositionInIdentifier()

Return value

int|false

2 calls to DocParser::getClassConstantPositionInIdentifier()
DocParser::Constant in core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php
Constant ::= integer | string | float | boolean
DocParser::identifierEndsWithClassConstant in core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php

File

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

Class

DocParser
A parser for docblock annotations.

Namespace

Drupal\Component\Annotation\Doctrine

Code

private function getClassConstantPositionInIdentifier(string $identifier) {
    return stripos($identifier, '::class');
}

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