EntityFieldItem   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
c 0
b 0
f 0
dl 0
loc 7
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A resolveValues() 0 2 1
1
<?php
2
3
namespace Drupal\graphql_core\Plugin\GraphQL\Fields\Entity;
4
5
use Drupal\graphql\GraphQL\Execution\ResolveContext;
6
use Drupal\graphql_core\Plugin\GraphQL\Fields\EntityFieldBase;
7
use GraphQL\Type\Definition\ResolveInfo;
8
9
/**
10
 * @GraphQLField(
11
 *   id = "entity_field_item",
12
 *   secure = true,
13
 *   weight = -1,
14
 *   deriver = "Drupal\graphql_core\Plugin\Deriver\Fields\EntityFieldItemDeriver",
15
 * )
16
 */
17
class EntityFieldItem extends EntityFieldBase {
18
19
  /**
20
   * {@inheritdoc}
21
   */
22
  protected function resolveValues($value, array $args, ResolveContext $context, ResolveInfo $info) {
23
    yield $this->resolveItem($value, $args, $context, $info);
24
  }
25
26
}
27