function AnnotationException::semanticalErrorConstants

Creates a new AnnotationException describing a constant semantical error.

Return value

AnnotationException

1 call to AnnotationException::semanticalErrorConstants()
DocParser::Constant in core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php
Constant ::= integer | string | float | boolean

File

core/lib/Drupal/Component/Annotation/Doctrine/AnnotationException.php, line 89

Class

AnnotationException
Description of AnnotationException

Namespace

Drupal\Component\Annotation\Doctrine

Code

public static function semanticalErrorConstants(string $identifier, ?string $context = null) {
  return self::semanticalError(sprintf("Couldn't find constant %s%s.", $identifier, $context ? ', ' . $context : ''));
}

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