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

Breadcrumb

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

function DocParser::isIgnoredAnnotation

Checks whether the given $name matches any ignored annotation name or namespace

1 call to DocParser::isIgnoredAnnotation()
DocParser::Annotation in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php
Annotation ::= "@" AnnotationName MethodCall AnnotationName ::= QualifiedName | SimpleName QualifiedName ::= NameSpacePart "\" {NameSpacePart "\"}* SimpleName NameSpacePart ::= identifier | null | false |…

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php, line 1400

Class

DocParser
A parser for docblock annotations.

Namespace

Doctrine\Common\Annotations

Code

private function isIgnoredAnnotation(string $name) : bool {
    if ($this->ignoreNotImportedAnnotations || isset($this->ignoredAnnotationNames[$name])) {
        return true;
    }
    foreach (array_keys($this->ignoredAnnotationNamespaces) as $ignoredAnnotationNamespace) {
        $ignoredAnnotationNamespace = rtrim($ignoredAnnotationNamespace, '\\') . '\\';
        if (stripos(rtrim($name, '\\') . '\\', $ignoredAnnotationNamespace) === 0) {
            return true;
        }
    }
    return false;
}
RSS feed
Powered by Drupal