src/View/Helper/Traits/HelperTrait.php
protected function _getToolTipAttr(array $options = [], $toggle = 'tooltip')
    {
        if (Arr::key('tooltip', $options)) {
            $tooltip = $options['tooltip'];
            unset($options['tooltip']);

            if (is_callable($this->getConfig('prepareTooltip'))) {
                return (array) call_user_func($this->getConfig('prepareTooltip'), $this, $options, $tooltip);
            }

            $_options = [
                'data-toggle'    => $toggle,
                'data-placement' => 'top',
            ];

            if (Arr::key('tooltipPos', $options)) {
                $_options['data-placement'] = (string) $options['tooltipPos'];
                unset($options['tooltipPos']);
            }

            $options = $this->_setTooltipTitle($tooltip, $options);

            return Hash::merge($_options, $options);
        }

        return $options;
    }
protected function _getToolTipAttr(array $options = [], $toggle = 'tooltip')
    {
        if (Arr::key('tooltip', $options)) {
            $tooltip = $options['tooltip'];
            unset($options['tooltip']);

            if (is_callable($this->getConfig('prepareTooltip'))) {
                return (array) call_user_func($this->getConfig('prepareTooltip'), $this, $options, $tooltip);
            }

            $_options = [
                'data-toggle'    => $toggle,
                'data-placement' => 'top',
            ];

            if (Arr::key('tooltipPos', $options)) {
                $_options['data-placement'] = (string) $options['tooltipPos'];
                unset($options['tooltipPos']);
            }

            $options = $this->_setTooltipTitle($tooltip, $options);

            return Hash::merge($_options, $options);
        }

        return $options;
    }
protected function _getToolTipAttr ( array $ options = [ ] , $ toggle = 'tooltip' ) { if ( Arr :: key ( 'tooltip' , $ options ) ) { $ tooltip = $ options [ 'tooltip' ] ; unset ( $ options [ 'tooltip' ] ) ; if ( is_callable ( $ this -> getConfig ( 'prepareTooltip' ) ) ) { return ( array ) call_user_func ( $ this -> getConfig ( 'prepareTooltip' ) , $ this , $ options , $ tooltip ) ; } $ _options = [ 'data-toggle' => $ toggle , 'data-placement' => 'top' , ] ; if ( Arr :: key ( 'tooltipPos' , $ options ) ) { $ _options [ 'data-placement' ] = ( string ) $ options [ 'tooltipPos' ] ; unset ( $ options [ 'tooltipPos' ] ) ; } $ options = $ this -> _setTooltipTitle ( $ tooltip , $ options ) ; return Hash :: merge ( $ _options , $ options ) ; } return $ options ; }
Create and get tooltip attributes.

@param   array $options
@param   string $toggle
@return  array
Create and get tooltip attributes .