function SimpleAnnotationReader::getClassAnnotations
Gets the annotations applied to a class.
Parameters
ReflectionClass $class The ReflectionClass of the class from which: the class annotations should be read.
Return value
array<object> An array of Annotations.
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 102
Class
- SimpleAnnotationReader
- Simple Annotation Reader.
Namespace
Drupal\Component\Annotation\DoctrineCode
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.