|
@@ 47-50 (lines=4) @@
|
| 44 |
|
public function blockSubmit($form, FormStateInterface $form_state) { |
| 45 |
|
parent::blockSubmit($form, $form_state); |
| 46 |
|
|
| 47 |
|
foreach (array_keys($this->pluginDefinition['graphql_parameters']) as $arg) { |
| 48 |
|
$values = $form_state->getValues(); |
| 49 |
|
$this->configuration['graphql_block'][$arg] = $values['graphql_block'][$arg]; |
| 50 |
|
} |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
/** |
|
@@ 59-61 (lines=3) @@
|
| 56 |
|
public function build() { |
| 57 |
|
$arguments = []; |
| 58 |
|
|
| 59 |
|
foreach (array_keys($this->pluginDefinition['graphql_parameters']) as $arg) { |
| 60 |
|
$arguments[$arg] = $this->configuration['graphql_block'][$arg]; |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
return [ |
| 64 |
|
'#theme' => $this->pluginDefinition['graphql_theme_hook'], |