bundle/DependencyInjection/ExtensionPlugin.php
public function preProcessConfiguration(array $configs): array
    {
        $newConfigs = $configs;
        $prependConfigs = [];
        foreach ($configs as $index => $config) {
            if (isset($config['system'])) {
                $prependConfigs[] = ['system' => $config['system']];
                unset($config['system']);
                $newConfigs[$index] = $config;
            }

            foreach (array_keys($config) as $configName) {
                if (!in_array($configName, self::SITEACCCESS_AWARE_SETTINGS, true)) {
                    unset($config[$configName]);
                }
            }

            $newConfigs[] = ['system' => ['default' => $config]];
        }

        return array_merge($prependConfigs, $newConfigs);
    }
public function preProcessConfiguration(array $configs): array
    {
        $newConfigs = $configs;
        $prependConfigs = [];
        foreach ($configs as $index => $config) {
            if (isset($config['system'])) {
                $prependConfigs[] = ['system' => $config['system']];
                unset($config['system']);
                $newConfigs[$index] = $config;
            }

            foreach (array_keys($config) as $configName) {
                if (!in_array($configName, self::SITEACCCESS_AWARE_SETTINGS, true)) {
                    unset($config[$configName]);
                }
            }

            $newConfigs[] = ['system' => ['default' => $config]];
        }

        return array_merge($prependConfigs, $newConfigs);
    }
public function preProcessConfiguration ( array $ configs ) : array { $ newConfigs = $ configs ; $ prependConfigs = [ ] ; foreach ( $ configs as $ index => $ config ) { if ( isset ( $ config [ 'system' ] ) ) { $ prependConfigs [ ] = [ 'system' => $ config [ 'system' ] ] ; unset ( $ config [ 'system' ] ) ; $ newConfigs [ $ index ] = $ config ; } foreach ( array_keys ( $ config ) as $ configName ) { if ( ! in_array ( $ configName , self :: SITEACCCESS_AWARE_SETTINGS , true ) ) { unset ( $ config [ $ configName ] ) ; } } $ newConfigs [ ] = [ 'system' => [ 'default' => $ config ] ] ; } return array_merge ( $ prependConfigs , $ newConfigs ) ; }
Pre-processes the configuration before it is resolved.

The point of the preprocessor is to generate eZ Platform siteaccess aware
configuration for every key that is available in self::SITEACCCESS_AWARE_SETTINGS.

With this, the following:

[
0 => [
'netgen_block_manager' => [
'view' => ...
]
]
]

becomes:

[
0 => [
'netgen_block_manager' => [
'view' => ...,
'system' => [
'default' => [
'view' => ...
]
]
]
]
]

If the original array already has a system key, it will be removed and prepended
to configs generated from the original parameters.
Pre - processes the configuration before it is resolved .