public function process(ContainerBuilder $container)
    {
        if (!$container->hasParameter('ezdesign.design_list')) {
            return;
        }

        $designList = $container->getParameter('ezdesign.design_list');
        foreach ($designList as $designName => $themes) {
            if (!in_array('standard', $themes)) {
                $designList[$designName][] = 'standard';
            }
        }
        $container->setParameter('ezdesign.design_list', $designList);
    }
public function process(ContainerBuilder $container)
    {
        if (!$container->hasParameter('ezdesign.design_list')) {
            return;
        }

        $designList = $container->getParameter('ezdesign.design_list');
        foreach ($designList as $designName => $themes) {
            if (!in_array('standard', $themes)) {
                $designList[$designName][] = 'standard';
            }
        }
        $container->setParameter('ezdesign.design_list', $designList);
    }
public function process ( ContainerBuilder $ container ) { if ( ! $ container -> hasParameter ( 'ezdesign.design_list' ) ) { return ; } $ designList = $ container -> getParameter ( 'ezdesign.design_list' ) ; foreach ( $ designList as $ designName => $ themes ) { if ( ! in_array ( 'standard' , $ themes ) ) { $ designList [ $ designName ] [ ] = 'standard' ; } } $ container -> setParameter ( 'ezdesign.design_list' , $ designList ) ; }
Process defined designs and themes list and append standard theme if missing.

Standard theme defines default core templates used for rendering, so when different design
is used, missing template still needs to be rendered using fallback.

@param \Symfony\Component\DependencyInjection\ContainerBuilder $container
Process defined designs and themes list and append standard theme if missing .