View/Helper/BootstrapHtmlHelper.php
public function badge($text, $options = [])
    {
        $defaults = array_merge(['class' => 'badge'], $options);
        return parent::tag('span', $text, $defaults);
    }
public function badge($text, $options = [])
    {
        $defaults = array_merge(['class' => 'badge'], $options);
        return parent::tag('span', $text, $defaults);
    }
public function badge ( $ text , $ options = [ ] ) { $ defaults = array_merge ( [ 'class' => 'badge' ] , $ options ) ; return parent :: tag ( 'span' , $ text , $ defaults ) ; }
return a badge

@param  string $text
@param  array  $options
@return string
return a badge