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

Breadcrumb

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

function Reader::getClassAnnotation

Gets a class annotation.

@template T

Parameters

ReflectionClass $class The ReflectionClass of the class from which: the class annotations should be read.

class-string<T> $annotationName The name of the annotation.:

Return value

T|null The Annotation or NULL, if the requested annotation does not exist.

4 methods override Reader::getClassAnnotation()
AnnotationReader::getClassAnnotation in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php
Gets a class annotation.
IndexedReader::getClassAnnotation in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/IndexedReader.php
Gets a class annotation.
PsrCachedReader::getClassAnnotation in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/PsrCachedReader.php
Gets a class annotation.
SimpleAnnotationReader::getClassAnnotation in core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php
Gets a class annotation.

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Reader.php, line 35

Class

Reader
Interface for annotation readers.

Namespace

Doctrine\Common\Annotations

Code

public function getClassAnnotation(ReflectionClass $class, $annotationName);

API Navigation

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