How to achieve similar effect to control object in mantaflow?

I am doing fluid sim in mantaflow but it doesn’t have control fluid type since 2.82. The old fluid simulator is much slower and worse for me - how do I achieve similar effect in mantaflow?

I need a liquid to turn into a cube.