protected function TypePluginBase::buildUnions in GraphQL 8.3
Builds the list of unions that this type belongs to.
Parameters
array $definition: The plugin definition array.
Return value
array The list of unions that this type belongs to.
1 call to TypePluginBase::buildUnions()
- TypePluginBase::getDefinition in src/
Plugin/ GraphQL/ Types/ TypePluginBase.php - Returns the plugin's type or field definition for the schema.
File
- src/
Plugin/ GraphQL/ Types/ TypePluginBase.php, line 94
Class
Namespace
Drupal\graphql\Plugin\GraphQL\TypesCode
protected function buildUnions($definition) {
return array_unique($definition['unions']);
}