You are here

protected function TypePluginBase::buildInterfaces in GraphQL 8.3

Builds the list of interfaces that this type implements.

Parameters

array $definition: The plugin definition array.

Return value

array The list of interfaces implemented by this type.

1 call to TypePluginBase::buildInterfaces()
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 81

Class

TypePluginBase

Namespace

Drupal\graphql\Plugin\GraphQL\Types

Code

protected function buildInterfaces($definition) {
  return array_unique($definition['interfaces']);
}