Redaxscript\Template\Tag::_migrate PHP Method

_migrate() protected static method

migrate
Since: 2.3.0
protected static _migrate ( string $function = null, array $parameterArray = [] ) : string
$function string
$parameterArray array
return string
    protected static function _migrate($function = null, $parameterArray = [])
    {
        // @codeCoverageIgnoreStart
        ob_start();
        /* call with parameter */
        if (is_array($parameterArray)) {
            call_user_func_array($function, $parameterArray);
        } else {
            call_user_func($function);
        }
        return ob_get_clean();
        // @codeCoverageIgnoreEnd
    }