<?php

function smarty_function_get_dynamic_filter($params, &$smarty)
{
    $result = ['parameters' => [], 'variations' => [], 'producers' => false, 'filter' => new Filter()];

    if (!empty($params['assign'])) {
        $smarty->assign($params['assign'], $result);
    } else {
        return $result;
    }
}
