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

Breadcrumb

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

function IndexedReader::getPropertyAnnotations

Overrides Reader::getPropertyAnnotations

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/IndexedReader.php, line 70

Class

IndexedReader
Allows the reader to be used in-place of Doctrine's reader.

Namespace

Doctrine\Common\Annotations

Code

public function getPropertyAnnotations(ReflectionProperty $property) {
    $annotations = [];
    foreach ($this->delegate
        ->getPropertyAnnotations($property) as $annot) {
        $annotations[get_class($annot)] = $annot;
    }
    return $annotations;
}
RSS feed
Powered by Drupal