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

Breadcrumb

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

function SimpleAnnotationReader::getPropertyAnnotations

Overrides Reader::getPropertyAnnotations

1 call to SimpleAnnotationReader::getPropertyAnnotations()
SimpleAnnotationReader::getPropertyAnnotation in core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php
Gets a property annotation.

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());
}
RSS feed
Powered by Drupal