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

Breadcrumb

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

function ConfigEntityConfigExportRule::isAnnotated

1 call to ConfigEntityConfigExportRule::isAnnotated()
ConfigEntityConfigExportRule::doProcessNode in vendor/mglaman/phpstan-drupal/src/Rules/Deprecations/ConfigEntityConfigExportRule.php

File

vendor/mglaman/phpstan-drupal/src/Rules/Deprecations/ConfigEntityConfigExportRule.php, line 41

Class

ConfigEntityConfigExportRule

Namespace

mglaman\PHPStanDrupal\Rules\Deprecations

Code

private function isAnnotated(ResolvedPhpDocBlock $phpDoc) : bool {
    foreach ($phpDoc->getPhpDocNodes() as $docNode) {
        foreach ($docNode->children as $childNode) {
            if ($childNode instanceof PhpDocTagNode && $childNode->name === '@ConfigEntityType') {
                return true;
            }
        }
    }
    return false;
}

API Navigation

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