Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function process(ContainerBuilder $container): void |
||
18 | { |
||
19 | if (!$container->has('monsieurbiz_rich_editor.registry')) { |
||
20 | return; |
||
21 | } |
||
22 | |||
23 | $uiElementRegistry = $container->findDefinition('monsieurbiz_rich_editor.registry'); |
||
24 | |||
25 | $taggedServices = $container->findTaggedServiceIds(self::UI_ELEMENT_SERVICE_TAG); |
||
26 | foreach (array_keys($taggedServices) as $id) { |
||
27 | $uiElementRegistry->addMethodCall('addUiElement', [new Reference($id)]); |
||
28 | } |
||
31 |