original_string: 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);
              }
          }
      }
code: 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);
              }
          }
      }
code_tokens: 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 ) ; } } }
docstring: Applies asset variables to the combiner filters that support it.
  @return void
docstring_tokens: Applies asset variables to the combiner filters that support it .