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

Breadcrumb

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

function DataProviderHelper::getDataProviderAnnotations

*

Return value

array<PhpDocTagNode>

1 call to DataProviderHelper::getDataProviderAnnotations()
DataProviderHelper::getDataProviderMethods in vendor/phpstan/phpstan-phpunit/src/Rules/PHPUnit/DataProviderHelper.php
*

File

vendor/phpstan/phpstan-phpunit/src/Rules/PHPUnit/DataProviderHelper.php, line 112

Class

DataProviderHelper

Namespace

PHPStan\Rules\PHPUnit

Code

private function getDataProviderAnnotations(?ResolvedPhpDocBlock $phpDoc) : array {
    if ($phpDoc === null) {
        return [];
    }
    $phpDocNodes = $phpDoc->getPhpDocNodes();
    $annotations = [];
    foreach ($phpDocNodes as $docNode) {
        $annotations = array_merge($annotations, $docNode->getTagsByName('@dataProvider'));
    }
    return $annotations;
}

API Navigation

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