You are here

protected function InterfacePluginBase::buildInterfaces in GraphQL 8.3

Builds the list of interfaces inherited by this interface.

Parameters

array $definition: The plugin definition array.

Return value

array The list of interfaces that this interface inherits from.

1 call to InterfacePluginBase::buildInterfaces()
InterfacePluginBase::getDefinition in src/Plugin/GraphQL/Interfaces/InterfacePluginBase.php
Returns the plugin's type or field definition for the schema.

File

src/Plugin/GraphQL/Interfaces/InterfacePluginBase.php, line 82

Class

InterfacePluginBase

Namespace

Drupal\graphql\Plugin\GraphQL\Interfaces

Code

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