Completed
Pull Request — 8.x-3.x (#525)
by Philipp
08:20
created

TypedPluginTrait::parseType()   D

Complexity

Conditions 9
Paths 11

Size

Total Lines 29
Code Lines 17

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 9
eloc 17
nc 11
nop 2
dl 0
loc 29
rs 4.909
c 0
b 0
f 0
1
<?php
2
3
namespace Drupal\graphql\Plugin\GraphQL\Traits;
4
5
use Drupal\graphql\Utility\StringHelper;
6
7
trait TypedPluginTrait {
8
9
  /**
10
   * @param $definition
11
   *
12
   * @return array
13
   */
14
  protected function buildType($definition) {
15
    return StringHelper::parseType($definition['type']);
16
  }
17
18
}
19