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

Breadcrumb

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

function Reader::getMethodAnnotation

Gets a method annotation.

@template T

Parameters

ReflectionMethod $method The ReflectionMethod to read the annotations from.:

class-string<T> $annotationName The name of the annotation.:

Return value

T|null The Annotation or NULL, if the requested annotation does not exist.

4 methods override Reader::getMethodAnnotation()
AnnotationReader::getMethodAnnotation in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php
Gets a method annotation.
IndexedReader::getMethodAnnotation in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/IndexedReader.php
Gets a method annotation.
PsrCachedReader::getMethodAnnotation in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/PsrCachedReader.php
Gets a method annotation.
SimpleAnnotationReader::getMethodAnnotation in core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php
Gets a method annotation.

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Reader.php, line 57

Class

Reader
Interface for annotation readers.

Namespace

Doctrine\Common\Annotations

Code

public function getMethodAnnotation(ReflectionMethod $method, $annotationName);

API Navigation

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