src/View/Helper/Traits/MaterializeCssTrait.php
protected function _prepareTooltip(Helper $helper, array $options, $tooltip)
    {
        $_options = [
            'data-position' => 'top'
        ];

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

        $options = $this->_tooltipTitle($options, $tooltip);
        $options = $this->_dataTooltip($options, $tooltip);
        $options = $helper->addClass($options, 'hasTooltip');

        return Hash::merge($_options, $options);
    }
protected function _prepareTooltip(Helper $helper, array $options, $tooltip)
    {
        $_options = [
            'data-position' => 'top'
        ];

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

        $options = $this->_tooltipTitle($options, $tooltip);
        $options = $this->_dataTooltip($options, $tooltip);
        $options = $helper->addClass($options, 'hasTooltip');

        return Hash::merge($_options, $options);
    }
protected function _prepareTooltip ( Helper $ helper , array $ options , $ tooltip ) { $ _options = [ 'data-position' => 'top' ] ; if ( Arr :: key ( 'tooltipPos' , $ options ) ) { $ _options [ 'data-position' ] = ( string ) $ options [ 'tooltipPos' ] ; unset ( $ options [ 'tooltipPos' ] ) ; } $ options = $ this -> _tooltipTitle ( $ options , $ tooltip ) ; $ options = $ this -> _dataTooltip ( $ options , $ tooltip ) ; $ options = $ helper -> addClass ( $ options , 'hasTooltip' ) ; return Hash :: merge ( $ _options , $ options ) ; }
Prepare tooltip attrs.

@param Helper $helper
@param array $options
@param string $tooltip
@return array
Prepare tooltip attrs .