You are here

public function TypePluginBase::applies in GraphQL 8.3

Checks whether this type applies to a given object.

Parameters

mixed $object: The object to check against.

\Drupal\graphql\GraphQL\Execution\ResolveContext $context: The resolve context.

\GraphQL\Type\Definition\ResolveInfo $info: The resolve info object.

Return value

null|bool TRUE if this type applies to the given object or FALSE if it doesn't.

9 methods override TypePluginBase::applies()
Bike::applies in tests/modules/graphql_plugin_test/src/Plugin/GraphQL/Types/Bike.php
Checks whether this type applies to a given object.
Car::applies in tests/modules/graphql_plugin_test/src/Plugin/GraphQL/Types/Car.php
Checks whether this type applies to a given object.
DefaultInternalUrl::applies in modules/graphql_core/src/Plugin/GraphQL/Types/Routing/DefaultInternalUrl.php
Checks whether this type applies to a given object.
EntityBundle::applies in modules/graphql_core/src/Plugin/GraphQL/Types/Entity/EntityBundle.php
Checks whether this type applies to a given object.
EntityCanonicalUrl::applies in modules/graphql_core/src/Plugin/GraphQL/Types/Entity/EntityCanonicalUrl.php
Checks whether this type applies to a given object.

... See full list

File

src/Plugin/GraphQL/Types/TypePluginBase.php, line 111

Class

TypePluginBase

Namespace

Drupal\graphql\Plugin\GraphQL\Types

Code

public function applies($object, ResolveContext $context, ResolveInfo $info) {
  return NULL;
}