function SimpleAnnotationReader::getMethodAnnotations

Same name in other branches
  1. 9 core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php \Drupal\Component\Annotation\Doctrine\SimpleAnnotationReader::getMethodAnnotations()
  2. 8.9.x core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php \Drupal\Component\Annotation\Doctrine\SimpleAnnotationReader::getMethodAnnotations()
  3. 11.x 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

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() . '()');
}

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