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

Breadcrumb

  1. Drupal Core 11.1.x

AbstractPluginManagerRule.php

Namespace

mglaman\PHPStanDrupal\Rules\Drupal\PluginManager

File

vendor/mglaman/phpstan-drupal/src/Rules/Drupal/PluginManager/AbstractPluginManagerRule.php

View source
<?php

declare (strict_types=1);
namespace mglaman\PHPStanDrupal\Rules\Drupal\PluginManager;

use PHPStan\Reflection\ClassReflection;
use PHPStan\Rules\Rule;

/**
 * @template TNodeType of \PhpParser\Node
 * @implements Rule<TNodeType>
 */
abstract class AbstractPluginManagerRule implements Rule {
    protected function isPluginManager(ClassReflection $classReflection) : bool {
        return !$classReflection->isInterface() && !$classReflection->isAnonymous() && $classReflection->implementsInterface('Drupal\\Component\\Plugin\\PluginManagerInterface');
    }

}

Classes

Title Deprecated Summary
AbstractPluginManagerRule @template TNodeType of \PhpParser\Node @implements Rule<TNodeType>

API Navigation

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