In my code i get the category from number id:
Code: Select all
$categories->get(27); // Italian category ID
Like this:
Code: Select all
if(lang == "IT")
$categories->get(27);
else
$associationId = ???
$categories->get($associationId);
Code: Select all
use Joomla\CMS\Association\AssociationExtensionHelper;
Thanks
Marco