You are here

public function SchemaPluginBase::hasType in GraphQL 8.3

Checks if the schema contains the given type.

Parameters

string $name: The name of the type to look for in the schema.

Return value

bool TRUE if the type exists in the schema, FALSE otherwise.

Overrides SchemaBuilderInterface::hasType

File

src/Plugin/GraphQL/Schemas/SchemaPluginBase.php, line 332

Class

SchemaPluginBase

Namespace

Drupal\graphql\Plugin\GraphQL\Schemas

Code

public function hasType($name) {
  return isset($this->pluginDefinition['type_map'][$name]);
}