lib/Core/Mapper/ConfigMapper.php
public function serializeValues(array $configStructs, array $configDefinitions, array $fallbackValues = []): Generator
    {
        foreach ($configDefinitions as $configKey => $configDefinition) {
            $configValues = [];

            if (
                isset($configStructs[$configKey]) &&
                $configStructs[$configKey] instanceof ParameterStruct
            ) {
                $configValues = $configStructs[$configKey]->getParameterValues();
            }

            yield $configKey => iterator_to_array(
                $this->parameterMapper->serializeValues(
                    $configDefinition,
                    $configValues,
                    $fallbackValues[$configKey] ?? []
                )
            );
        }
    }
public function serializeValues(array $configStructs, array $configDefinitions, array $fallbackValues = []): Generator
    {
        foreach ($configDefinitions as $configKey => $configDefinition) {
            $configValues = [];

            if (
                isset($configStructs[$configKey]) &&
                $configStructs[$configKey] instanceof ParameterStruct
            ) {
                $configValues = $configStructs[$configKey]->getParameterValues();
            }

            yield $configKey => iterator_to_array(
                $this->parameterMapper->serializeValues(
                    $configDefinition,
                    $configValues,
                    $fallbackValues[$configKey] ?? []
                )
            );
        }
    }
public function serializeValues ( array $ configStructs , array $ configDefinitions , array $ fallbackValues = [ ] ) : Generator { foreach ( $ configDefinitions as $ configKey => $ configDefinition ) { $ configValues = [ ] ; if ( isset ( $ configStructs [ $ configKey ] ) && $ configStructs [ $ configKey ] instanceof ParameterStruct ) { $ configValues = $ configStructs [ $ configKey ] -> getParameterValues ( ) ; } yield $ configKey => iterator_to_array ( $ this -> parameterMapper -> serializeValues ( $ configDefinition , $ configValues , $ fallbackValues [ $ configKey ] ?? [ ] ) ) ; } }
Serializes the existing config struct values based on provided config definitions.

@param \Netgen\BlockManager\API\Values\ParameterStruct[] $configStructs
@param \Netgen\BlockManager\Config\ConfigDefinitionInterface[] $configDefinitions
@param array<string, array<string, mixed>> $fallbackValues

@return \Generator
Serializes the existing config struct values based on provided config definitions .