You are here

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

SchemaPluginBase

Namespace

Drupal\graphql\Plugin\GraphQL\Schemas

Code

public function getSubTypes($name) {
  $association = $this->pluginDefinition['type_association_map'];
  return isset($association[$name]) ? $association[$name] : [];
}