TbHtml::close PHP Method

close() protected static method

Generates a close element.
protected static close ( string $tag, string $label, array $htmlOptions = [] ) : string
$tag string the tag name.
$label string the element label text.
$htmlOptions array additional HTML attributes.
return string the generated element.
    protected static function close($tag, $label, $htmlOptions = array())
    {
        self::addCssClass('close', $htmlOptions);
        $dismiss = TbArray::popValue('dismiss', $htmlOptions);
        if (!empty($dismiss)) {
            $htmlOptions['data-dismiss'] = $dismiss;
        }
        $htmlOptions['type'] = 'button';
        return self::tag($tag, $htmlOptions, $label);
    }
TbHtml