public function SchemaBuilderInterface::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.
1 method overrides SchemaBuilderInterface::hasType()
- SchemaPluginBase::hasType in src/
Plugin/ GraphQL/ Schemas/ SchemaPluginBase.php - Checks if the schema contains the given type.
File
- src/
Plugin/ SchemaBuilderInterface.php, line 46
Class
Namespace
Drupal\graphql\PluginCode
public function hasType($name);