In my component under Joomla! 4.0, I have the following call which returns:
error JHtml componentname not found.
HTMLHelper::_(
'componentname.link',
'index.php?option=com_component&view=credits',
Text::_('COM_COMPONENT_MYTEXT'),
'',
'',
'',
''
);
I have a namespaced class called ComponentName
under Component\Name\Libraries\Html\Html
. How can I make HTMLHelper find the namespaced class of my component?