@@ -7,9 +7,9 @@ discard block |
||
7 | 7 | use Flynt\Utils\Options; |
8 | 8 | use Flynt\Utils\Asset; |
9 | 9 | |
10 | -add_filter('Flynt/addComponentData?name=ListComponents', function ($data) { |
|
10 | +add_filter('Flynt/addComponentData?name=ListComponents', function($data) { |
|
11 | 11 | if (!empty($data['componentBlocks'])) { |
12 | - $data['componentBlocks'] = array_map(function ($block) { |
|
12 | + $data['componentBlocks'] = array_map(function($block) { |
|
13 | 13 | $block['component'] = substr($block['component'], strpos($block['component'], '/Components/')); |
14 | 14 | |
15 | 15 | if (file_exists(Asset::requirePath($block['component'] . 'screenshot.png'))) { |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | return $data; |
36 | 36 | }); |
37 | 37 | |
38 | -add_filter('acf/load_field/name=component', function ($field) { |
|
38 | +add_filter('acf/load_field/name=component', function($field) { |
|
39 | 39 | $componentManager = ComponentManager::getInstance(); |
40 | 40 | $field['choices'] = array_flip($componentManager->getAll()); |
41 | 41 | return $field; |