protected function UnionTypePluginBase::buildTypes in GraphQL 8.3
Builds the list of types contained within this union type.
Parameters
array $definition: The plugin definion array.
Return value
array The list of types contained within this union type.
1 call to UnionTypePluginBase::buildTypes()
- UnionTypePluginBase::getDefinition in src/
Plugin/ GraphQL/ Unions/ UnionTypePluginBase.php - Returns the plugin's type or field definition for the schema.
File
- src/
Plugin/ GraphQL/ Unions/ UnionTypePluginBase.php, line 60
Class
Namespace
Drupal\graphql\Plugin\GraphQL\UnionsCode
protected function buildTypes($definition) {
return $definition['types'] ?: [];
}