eZ\Bundle\EzPublishCoreBundle\Tests\DependencyInjection\Configuration\Parser\TemplatesTest::getExpectedConfigFieldTemplates PHP Method

getExpectedConfigFieldTemplates() private method

Fixes up input configuration for field_templates as semantic configuration parser does, adding a default priority of 0 when not set.
private getExpectedConfigFieldTemplates ( array $config ) : array
$config array
return array
    private function getExpectedConfigFieldTemplates(array $config)
    {
        foreach ($config['system']['ezdemo_frontend_group']['field_templates'] as &$block) {
            if (!isset($block['priority'])) {
                $block['priority'] = 0;
            }
        }
        return $config;
    }