Where is the equivalent way of writing the following Magento 1 code for calling a custom widget in Magento 2.3.1?


1 Answer 1


Difficult to answer without knowing more on the affect you are trying to achieve but will something like this work


Otherwise please can you add more detail on the task you are trying to achieve. There is always a possibility the same thing can be done differently in M2.

  • Thanks a lot. actually the link you posted is exactly what i needed. Jul 7, 2019 at 20:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.