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

Breadcrumb

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

function SimpleAnnotationReader::getMethodAnnotations

Overrides Reader::getMethodAnnotations

1 call to SimpleAnnotationReader::getMethodAnnotations()
SimpleAnnotationReader::getMethodAnnotation in core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php
Gets a method annotation.

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