Habari\FormControlTag::get PHP Method

get() public method

Produce HTML output for all this fieldset and all contained controls
public get ( boolean $forvalidation = true ) : string
$forvalidation boolean True if this control should render error information based on validation.
return string HTML that will render this control in the form
    function get($forvalidation = true)
    {
        $theme = $this->get_theme($forvalidation);
        $max = Tags::vocabulary()->max_count();
        $tag = $this->tag;
        $theme->class = 'tag_' . $tag->term;
        $theme->id = $tag->id;
        $theme->weight = $max > 0 ? round($tag->count * 10 / $max) : 0;
        $theme->caption = $tag->term_display;
        $theme->count = $tag->count;
        return $theme->fetch($this->get_template(), true);
    }
FormControlTag