You are here

public function SimpleAnnotationReader::getMethodAnnotations in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php \Drupal\Component\Annotation\Doctrine\SimpleAnnotationReader::getMethodAnnotations()
  2. 9 core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php \Drupal\Component\Annotation\Doctrine\SimpleAnnotationReader::getMethodAnnotations()
1 call to SimpleAnnotationReader::getMethodAnnotations()
SimpleAnnotationReader::getMethodAnnotation in core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php

File

core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php, line 107
This class is a near-copy of Doctrine\Common\Annotations\SimpleAnnotationReader, which is part of the Doctrine project: <http://www.doctrine-project.org>. It was copied from version 1.2.7.

Class

SimpleAnnotationReader
Simple Annotation Reader.

Namespace

Drupal\Component\Annotation\Doctrine

Code

public function getMethodAnnotations(\ReflectionMethod $method) {
  return $this->parser
    ->parse($method
    ->getDocComment(), 'method ' . $method
    ->getDeclaringClass()->name . '::' . $method
    ->getName() . '()');
}