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

Breadcrumb

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

function AnnotationReader::getClassAnnotations

Overrides Reader::getClassAnnotations

1 call to AnnotationReader::getClassAnnotations()
AnnotationReader::getClassAnnotation in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php
Gets a class annotation.

File

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

Class

AnnotationReader
A reader for docblock annotations.

Namespace

Doctrine\Common\Annotations

Code

public function getClassAnnotations(ReflectionClass $class) {
    $this->parser
        ->setTarget(Target::TARGET_CLASS);
    $this->parser
        ->setImports($this->getImports($class));
    $this->parser
        ->setIgnoredAnnotationNames($this->getIgnoredAnnotationNames($class));
    $this->parser
        ->setIgnoredAnnotationNamespaces(self::$globalIgnoredNamespaces);
    return $this->parser
        ->parse($class->getDocComment(), 'class ' . $class->getName());
}

API Navigation

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