You are here

public function SchemaPluginBase::processFields in GraphQL 8.3

Processes a list of field definitions.

Parameters

array $fields: An array of field definitions.

Return value

array The processed field definitions.

Overrides SchemaBuilderInterface::processFields

1 call to SchemaPluginBase::processFields()
SchemaPluginBase::getFields in src/Plugin/GraphQL/Schemas/SchemaPluginBase.php
Retrieves the fields for a given type.

File

src/Plugin/GraphQL/Schemas/SchemaPluginBase.php, line 441

Class

SchemaPluginBase

Namespace

Drupal\graphql\Plugin\GraphQL\Schemas

Code

public function processFields(array $fields) {
  return array_map([
    $this,
    'buildField',
  ], $fields);
}