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

Breadcrumb

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

function AnnotationReader::getIgnoredAnnotationNames

Returns the ignored annotations for the given class or function.

Parameters

ReflectionClass|ReflectionFunction $reflection:

Return value

array<string, true>

4 calls to AnnotationReader::getIgnoredAnnotationNames()
AnnotationReader::getClassAnnotations in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php
Gets the annotations applied to a class.
AnnotationReader::getFunctionAnnotations in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php
Gets the annotations applied to a function.
AnnotationReader::getMethodAnnotations in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php
Gets the annotations applied to a method.
AnnotationReader::getPropertyAnnotations in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php
Gets the annotations applied to a property.

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php, line 274

Class

AnnotationReader
A reader for docblock annotations.

Namespace

Doctrine\Common\Annotations

Code

private function getIgnoredAnnotationNames($reflection) : array {
    $type = $reflection instanceof ReflectionClass ? 'class' : 'function';
    $name = $reflection->getName();
    if (isset($this->ignoredAnnotationNames[$type][$name])) {
        return $this->ignoredAnnotationNames[$type][$name];
    }
    $this->collectParsingMetadata($reflection);
    return $this->ignoredAnnotationNames[$type][$name];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal