Initialisation :

use Joomla\CMS\HTML\HTMLHelper;
....
HTMLHelper::_('bootstrap.tooltip', '.hasTooltip');

Voir /librairies/src/HTML/Helpers/Bootstrap.php ligne 480+

*Add javascript support for Bootstrap tooltip
*
* Add a title attribute to any element in the form
* title="title::text"
*
* @param string $selector The ID selector for the tooltip.
* @param array $options An array of options for the tooltip.
*
* @return void
*
* @since 3.0
*
* Options for the tooltip can be:
* - animation boolean apply a css fade transition to the popover
* - container string|boolean Appends the popover to a specific element: { container: 'body' }
* - delay number|object delay showing and hiding the popover (ms) - does not apply to manual trigger type
* If a number is supplied, delay is applied to both hide/show
* Object structure is: delay: { show: 500, hide: 100 }
* - html boolean Insert HTML into the popover. If false, jQuery's text method will be used to
* insert content into the dom.
* - placement string|function how to position the popover - top | bottom | left | right
* - selector string If a selector is provided, popover objects will be
* delegated to the specified targets.
* - template string Base HTML to use when creating the popover.
* - title string|function default title value if 'title' tag isn't present
* - trigger string how popover is triggered - hover | focus | manual
* - constraints array An array of constraints - passed through to Popper.
* - offset string Offset of the popover relative to its target.
*/

public static function tooltip($selector = '', $options = []): void

Le systeme vérifie que le selecteur n'est initialisé qu'une seule fois.

Dans le template de la vue Insertion d'un tooltip :

echo HTMLHelper::tooltip(....);

Voir /librairies/src/HTML/Helpers/HTMLHelper.php ligne 908+

/*
* Creates a tooltip with an image as button
* @param string $tooltip The tip string.
* @param mixed $title The title of the tooltip or an associative array with keys contained in
* {'title','image','text','href','alt'} and values corresponding to parameters of the same name.
*@param string $image The image for the tip, if no text is provided.
* @param string $text The text for the tip.
* @param string $href A URL that will be used to create the link.
* @param string $alt The alt attribute for img tag.
* @param string $class CSS class for the tool tip.
* @return string
*
* @since 1.5<

public static function tooltip($tooltip, $title = '', $image = 'tooltip.png', $text = '', $href = '', $alt = 'Tooltip', $class = 'hasTooltip')