You are here

protected function QueryProcessor::sanitizeRecursive in GraphQL 8.3

Parameters

array $item:

Return value

array

1 call to QueryProcessor::sanitizeRecursive()
QueryProcessor::serializeDocument in src/GraphQL/Execution/QueryProcessor.php

File

src/GraphQL/Execution/QueryProcessor.php, line 461

Class

QueryProcessor

Namespace

Drupal\graphql\GraphQL\Execution

Code

protected function sanitizeRecursive(array $item) {
  unset($item['loc']);
  foreach ($item as &$value) {
    if (is_array($value)) {
      $value = $this
        ->sanitizeRecursive($value);
    }
  }
  return $item;
}