EntityFieldItem::resolveValues()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 2
rs 10
cc 1
nc 1
nop 4
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