function SimpleAnnotationReader::getPropertyAnnotations

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php \Drupal\Component\Annotation\Doctrine\SimpleAnnotationReader::getPropertyAnnotations()
  2. 10 core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php \Drupal\Component\Annotation\Doctrine\SimpleAnnotationReader::getPropertyAnnotations()
  3. 11.x core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php \Drupal\Component\Annotation\Doctrine\SimpleAnnotationReader::getPropertyAnnotations()
1 call to SimpleAnnotationReader::getPropertyAnnotations()
SimpleAnnotationReader::getPropertyAnnotation in core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php

File

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

Class

SimpleAnnotationReader
Simple Annotation Reader.

Namespace

Drupal\Component\Annotation\Doctrine

Code

public function getPropertyAnnotations(\ReflectionProperty $property) {
    return $this->parser
        ->parse($property->getDocComment(), 'property ' . $property->getDeclaringClass()->name . '::$' . $property->getName());
}

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