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
Namespace
Drupal\graphql\Plugin\GraphQL\SchemasCode
public function hasType($name) {
return isset($this->pluginDefinition['type_map'][$name]);
}