I need to extend a function from this file app/code/Smartwave/Megamenu/Block/Topmenu.php.

By using a module or in child theme.

How can i achieve that to extend that file like how to modify that function.

Any help is appreciated.



Your Answer

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