You are here

protected function InputTypePluginBase::buildFieldDefault in GraphQL 8.3

Builds a field's default value.

Parameters

array $field: The field definition array.

array $definition: The plugin definition array.

Return value

mixed The field's default value.

1 call to InputTypePluginBase::buildFieldDefault()
InputTypePluginBase::buildFields in src/Plugin/GraphQL/InputTypes/InputTypePluginBase.php
Builds the fields of the type definition.

File

src/Plugin/GraphQL/InputTypes/InputTypePluginBase.php, line 107

Class

InputTypePluginBase

Namespace

Drupal\graphql\Plugin\GraphQL\InputTypes

Code

protected function buildFieldDefault($field, $definition) {
  return isset($field['default']) ? $field['default'] : NULL;
}