public function SchemaPluginBase::getSubTypes in GraphQL 8.3
Retrieve the list of derivatives associated with a composite type.
Parameters
string $name: The name of interface or union type.
Return value
string[] The list of possible sub typenames.
Overrides SchemaBuilderInterface::getSubTypes
File
- src/
Plugin/ GraphQL/ Schemas/ SchemaPluginBase.php, line 378
Class
Namespace
Drupal\graphql\Plugin\GraphQL\SchemasCode
public function getSubTypes($name) {
$association = $this->pluginDefinition['type_association_map'];
return isset($association[$name]) ? $association[$name] : [];
}