public function tag($name, $text = null, array $options = [])
    {
        $options = optionsParser($options)->tooltip();
        list($text, $options) = $this->addIconToText($text, $options);

        return parent::tag($name, is_null($text) ? '' : $text, $options->toArray());
    }
public function tag($name, $text = null, array $options = [])
    {
        $options = optionsParser($options)->tooltip();
        list($text, $options) = $this->addIconToText($text, $options);

        return parent::tag($name, is_null($text) ? '' : $text, $options->toArray());
    }
public function tag ( $ name , $ text = null , array $ options = [ ] ) { $ options = optionsParser ( $ options ) -> tooltip ( ) ; list ( $ text , $ options ) = $ this -> addIconToText ( $ text , $ options ) ; return parent :: tag ( $ name , is_null ( $ text ) ? '' : $ text , $ options -> toArray ( ) ) ; }
Returns a formatted block tag
@param string $name Tag name
@param string|null $text Tag content. If `null`, only a start tag will be
printed
@param array $options Array of options and HTML attributes
@return string
Returns a formatted block tag