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

Breadcrumb

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

class AbstractPluginManagerRule

@template TNodeType of \PhpParser\Node @implements Rule<TNodeType>

Hierarchy

  • class \mglaman\PHPStanDrupal\Rules\Drupal\PluginManager\AbstractPluginManagerRule implements \PHPStan\Rules\Rule

Expanded class hierarchy of AbstractPluginManagerRule

File

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

Namespace

mglaman\PHPStanDrupal\Rules\Drupal\PluginManager
View source
abstract class AbstractPluginManagerRule implements Rule {
    protected function isPluginManager(ClassReflection $classReflection) : bool {
        return !$classReflection->isInterface() && !$classReflection->isAnonymous() && $classReflection->implementsInterface('Drupal\\Component\\Plugin\\PluginManagerInterface');
    }

}

Members

Title Sort descending Modifiers Object type Summary
AbstractPluginManagerRule::isPluginManager protected function

API Navigation

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