Does anyone know how can I get the current menu model in Joomla 4? In 2.5/3.X I was using this code:
$model = JModelLegacy::getInstance( 'MenusModelItem' )
->getItem();
But this is not working anymore in 4. I kinda cannot find any way to get it in J4.
Regards, Radek