function AnnotationException::syntaxError

Creates a new AnnotationException describing a Syntax error.

Return value

AnnotationException

2 calls to AnnotationException::syntaxError()
BackwardsCompatibilityClassLoaderTest::testDoctrineException in core/tests/Drupal/KernelTests/Core/ClassLoader/BackwardsCompatibilityClassLoaderTest.php
Tests that the BC layer for Doctrine's AnnotationException works.
DocParser::syntaxError in core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php
Generates a new syntax error.

File

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

Class

AnnotationException
Description of AnnotationException

Namespace

Drupal\Component\Annotation\Doctrine

Code

public static function syntaxError(string $message) {
  return new self('[Syntax Error] ' . $message);
}

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