public static function applyAssetVariablesToCombinerFilters($filters)
    {
        $theme = CmsTheme::getActiveTheme();

        if (!$theme){
            return;
        }

        if (!$theme->hasCustomData()) {
            return;
        }

        $assetVars = $theme->getCustomData()->getAssetVariables();

        foreach ($filters as $filter) {
            if (method_exists($filter, 'setPresets')) {
                $filter->setPresets($assetVars);
            }
        }
    }
public static function applyAssetVariablesToCombinerFilters($filters)
    {
        $theme = CmsTheme::getActiveTheme();

        if (!$theme){
            return;
        }

        if (!$theme->hasCustomData()) {
            return;
        }

        $assetVars = $theme->getCustomData()->getAssetVariables();

        foreach ($filters as $filter) {
            if (method_exists($filter, 'setPresets')) {
                $filter->setPresets($assetVars);
            }
        }
    }
public static function applyAssetVariablesToCombinerFilters ( $ filters ) { $ theme = CmsTheme :: getActiveTheme ( ) ; if ( ! $ theme ) { return ; } if ( ! $ theme -> hasCustomData ( ) ) { return ; } $ assetVars = $ theme -> getCustomData ( ) -> getAssetVariables ( ) ; foreach ( $ filters as $ filter ) { if ( method_exists ( $ filter , 'setPresets' ) ) { $ filter -> setPresets ( $ assetVars ) ; } } }
Applies asset variables to the combiner filters that support it.
@return void
Applies asset variables to the combiner filters that support it .