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

Breadcrumb

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

function AnnotationReader::getMethodAnnotations

Overrides Reader::getMethodAnnotations

1 call to AnnotationReader::getMethodAnnotations()
AnnotationReader::getMethodAnnotation in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php
Gets a method annotation.

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php, line 203

Class

AnnotationReader
A reader for docblock annotations.

Namespace

Doctrine\Common\Annotations

Code

public function getMethodAnnotations(ReflectionMethod $method) {
    $class = $method->getDeclaringClass();
    $context = 'method ' . $class->getName() . '::' . $method->getName() . '()';
    $this->parser
        ->setTarget(Target::TARGET_METHOD);
    $this->parser
        ->setImports($this->getMethodImports($method));
    $this->parser
        ->setIgnoredAnnotationNames($this->getIgnoredAnnotationNames($class));
    $this->parser
        ->setIgnoredAnnotationNamespaces(self::$globalIgnoredNamespaces);
    return $this->parser
        ->parse($method->getDocComment(), $context);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal