1 | <?php |
||
9 | trait EntityMutationInputTrait { |
||
10 | |||
11 | /** |
||
12 | * Extract entity values from the resolver args. |
||
13 | * |
||
14 | * Loops over all input values and assigns them to their original field names. |
||
15 | * |
||
16 | * @param array $inputArgs |
||
17 | * The entity values provided through the resolver args. |
||
18 | * @param \Drupal\graphql\Plugin\GraphQL\InputTypes\InputTypePluginBase $inputType |
||
19 | * The input type. |
||
20 | * |
||
21 | * @return array |
||
22 | * The extracted entity values with their proper, internal field names. |
||
23 | */ |
||
24 | protected function extractEntityInput(array $inputArgs, InputTypePluginBase $inputType) { |
||
47 | |||
48 | /** |
||
49 | * Extract property values from field values from the resolver args. |
||
50 | * |
||
51 | * Loops over all field properties and assigns them to their original property |
||
52 | * names. |
||
53 | * |
||
54 | * @param array $fieldValue |
||
55 | * The field values keyed by property name. |
||
56 | * @param \Drupal\graphql\Plugin\GraphQL\InputTypes\InputTypePluginBase $fieldType |
||
57 | * The field type. |
||
58 | * |
||
59 | * @return array |
||
60 | * The extracted field values with their proper, internal property names. |
||
61 | */ |
||
62 | protected function extractEntityFieldInput(array $fieldValue, InputTypePluginBase $fieldType) { |
||
71 | |||
72 | } |