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

Breadcrumb

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

function SimpleAnnotationReader::getClassAnnotations

Overrides Reader::getClassAnnotations

1 call to SimpleAnnotationReader::getClassAnnotations()
SimpleAnnotationReader::getClassAnnotation in core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php
Gets a class annotation.

File

core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php, line 99

Class

SimpleAnnotationReader
Simple Annotation Reader.

Namespace

Drupal\Component\Annotation\Doctrine

Code

public function getClassAnnotations(\ReflectionClass $class) {
    return $this->parser
        ->parse($class->getDocComment(), 'class ' . $class->getName());
}
RSS feed
Powered by Drupal