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

Breadcrumb

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

function IndexedReader::getClassAnnotations

Overrides Reader::getClassAnnotations

File

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

Class

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

Namespace

Doctrine\Common\Annotations

Code

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