Conditions | 5 |
Paths | 8 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
35 | public function submitConfigurationForm(array &$form, FormStateInterface $form_state) { |
||
36 | $values = $form_state->getValues(); |
||
37 | |||
38 | if ($this instanceof WidgetInterface) { |
||
39 | $values = $values['table'][$this->uuid()]; |
||
40 | } |
||
41 | |||
42 | if (!empty($values)) { |
||
43 | foreach ($values as $key => $value) { |
||
44 | if (isset($this->configuration[$key])) { |
||
45 | $this->configuration[$key] = $value; |
||
46 | } |
||
47 | } |
||
48 | } |
||
49 | } |
||
50 | |||
52 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.