Conditions | 5 |
Paths | 5 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function getDerivativeDefinitions($base_plugin_definition) { |
||
28 | foreach ($this->themeHandler->listInfo() as $themeName => $info) { |
||
29 | if (isset($info->info['blocks'])) { |
||
30 | foreach ($info->info['blocks'] as $name => $block) { |
||
31 | $this->derivatives[$name] = [ |
||
32 | 'admin_label' => $this->t($block['label']), |
||
33 | 'graphql_theme_hook' => $name, |
||
34 | 'graphql_parameters' => isset($block['parameters']) ? $block['parameters'] : [], |
||
35 | ] + $base_plugin_definition; |
||
36 | } |
||
37 | } |
||
38 | } |
||
39 | return $this->derivatives; |
||
40 | } |
||
41 | |||
44 |