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

Breadcrumb

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

function AbstractPluginManagerRule::isPluginManager

1 call to AbstractPluginManagerRule::isPluginManager()
PluginManagerSetsCacheBackendRule::processNode in vendor/mglaman/phpstan-drupal/src/Rules/Drupal/PluginManager/PluginManagerSetsCacheBackendRule.php

File

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

Class

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

Namespace

mglaman\PHPStanDrupal\Rules\Drupal\PluginManager

Code

protected function isPluginManager(ClassReflection $classReflection) : bool {
    return !$classReflection->isInterface() && !$classReflection->isAnonymous() && $classReflection->implementsInterface('Drupal\\Component\\Plugin\\PluginManagerInterface');
}

API Navigation

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