src/View/Helper/HtmlHelper.php
public function tooltip($text, $tooltip, $options = []) {
        $options += $this->getConfig('tooltip') + [
            'tooltip' => $tooltip,
            'templateVars' => []
        ];
        return $this->formatTemplate('tooltip', [
            'content' => $text,
            'attrs' => $this->templater()->formatAttributes($options, ['tag', 'toggle', 'placement', 'tooltip']),
            'templateVars' => array_merge($options, $options['templateVars'])
        ]);
    }
public function tooltip($text, $tooltip, $options = []) {
        $options += $this->getConfig('tooltip') + [
            'tooltip' => $tooltip,
            'templateVars' => []
        ];
        return $this->formatTemplate('tooltip', [
            'content' => $text,
            'attrs' => $this->templater()->formatAttributes($options, ['tag', 'toggle', 'placement', 'tooltip']),
            'templateVars' => array_merge($options, $options['templateVars'])
        ]);
    }
public function tooltip ( $ text , $ tooltip , $ options = [ ] ) { $ options += $ this -> getConfig ( 'tooltip' ) + [ 'tooltip' => $ tooltip , 'templateVars' => [ ] ] ; return $ this -> formatTemplate ( 'tooltip' , [ 'content' => $ text , 'attrs' => $ this -> templater ( ) -> formatAttributes ( $ options , [ 'tag' , 'toggle' , 'placement' , 'tooltip' ] ) , 'templateVars' => array_merge ( $ options , $ options [ 'templateVars' ] ) ] ) ; }
Create a Twitter Bootstrap style tooltip.

### Options

- `toggle` The 'data-toggle' HTML attribute.
- `placement` The `data-placement` HTML attribute.
- `tag` The tag to use.
- `templateVars` Provide template variables for the `tooltip` template.
- Other attributes will be assigned to the wrapper element.

@param string $text The HTML tag inner text.
@param string $tooltip The tooltip text.
@param array  $options An array of options. See above. Default values are retrieved
from the configuration.

@return string The text wrapped in the specified HTML tag with a tooltip.
Create a Twitter Bootstrap style tooltip .