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
Namespace
mglaman\PHPStanDrupal\Rules\DeprecationsCode
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;
}