lib/Core/Mapper/ConfigMapper.php
public function mapConfig(array $config, array $configDefinitions): Generator
    {
        foreach ($configDefinitions as $configKey => $configDefinition) {
            yield $configKey => Config::fromArray(
                [
                    'configKey' => $configKey,
                    'definition' => $configDefinition,
                    'parameters' => iterator_to_array(
                        $this->parameterMapper->mapParameters(
                            $configDefinition,
                            $config[$configKey] ?? []
                        )
                    ),
                ]
            );
        }
    }
public function mapConfig(array $config, array $configDefinitions): Generator
    {
        foreach ($configDefinitions as $configKey => $configDefinition) {
            yield $configKey => Config::fromArray(
                [
                    'configKey' => $configKey,
                    'definition' => $configDefinition,
                    'parameters' => iterator_to_array(
                        $this->parameterMapper->mapParameters(
                            $configDefinition,
                            $config[$configKey] ?? []
                        )
                    ),
                ]
            );
        }
    }
public function mapConfig ( array $ config , array $ configDefinitions ) : Generator { foreach ( $ configDefinitions as $ configKey => $ configDefinition ) { yield $ configKey => Config :: fromArray ( [ 'configKey' => $ configKey , 'definition' => $ configDefinition , 'parameters' => iterator_to_array ( $ this -> parameterMapper -> mapParameters ( $ configDefinition , $ config [ $ configKey ] ?? [ ] ) ) , ] ) ; } }
Maps the provided config array to API values according to provided config definitions.

@param array<string, array<string, mixed>> $config
@param \Netgen\BlockManager\Config\ConfigDefinitionInterface[] $configDefinitions

@return \Generator
Maps the provided config array to API values according to provided config definitions .