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

Breadcrumb

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

function EntityFieldsViaMagicReflectionExtension::classObjectIsSuperOfInterface

File

vendor/mglaman/phpstan-drupal/src/Reflection/EntityFieldsViaMagicReflectionExtension.php, line 66

Class

EntityFieldsViaMagicReflectionExtension
Allows field access via magic methods

Namespace

mglaman\PHPStanDrupal\Reflection

Code

public static function classObjectIsSuperOfInterface(string $name, ObjectType $interfaceObject) : TrinaryLogic {
    return $interfaceObject->isSuperTypeOf(new ObjectType($name));
}
RSS feed
Powered by Drupal