function SimpleAnnotationReader::getClassAnnotations

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php \Drupal\Component\Annotation\Doctrine\SimpleAnnotationReader::getClassAnnotations()
  2. 10 core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php \Drupal\Component\Annotation\Doctrine\SimpleAnnotationReader::getClassAnnotations()
  3. 11.x core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php \Drupal\Component\Annotation\Doctrine\SimpleAnnotationReader::getClassAnnotations()
1 call to SimpleAnnotationReader::getClassAnnotations()
SimpleAnnotationReader::getClassAnnotation in core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php

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());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.