Swat/SwatFormField.php
protected function getTitleTag()
    {
        $label_tag = new SwatHtmlTag('label');

        if ($this->title !== null) {
            if ($this->show_colon) {
                $label_tag->setContent(
                    sprintf(Swat::_('%s: '), $this->title),
                    $this->title_content_type
                );
            } else {
                $label_tag->setContent($this->title, $this->title_content_type);
            }
        }

        $label_tag->for = $this->getFocusableHtmlId();
        $label_tag->accesskey = $this->access_key;

        return $label_tag;
    }
protected function getTitleTag()
    {
        $label_tag = new SwatHtmlTag('label');

        if ($this->title !== null) {
            if ($this->show_colon) {
                $label_tag->setContent(
                    sprintf(Swat::_('%s: '), $this->title),
                    $this->title_content_type
                );
            } else {
                $label_tag->setContent($this->title, $this->title_content_type);
            }
        }

        $label_tag->for = $this->getFocusableHtmlId();
        $label_tag->accesskey = $this->access_key;

        return $label_tag;
    }
protected function getTitleTag ( ) { $ label_tag = new SwatHtmlTag ( 'label' ) ; if ( $ this -> title !== null ) { if ( $ this -> show_colon ) { $ label_tag -> setContent ( sprintf ( Swat :: _ ( '%s: ' ) , $ this -> title ) , $ this -> title_content_type ) ; } else { $ label_tag -> setContent ( $ this -> title , $ this -> title_content_type ) ; } } $ label_tag -> for = $ this -> getFocusableHtmlId ( ) ; $ label_tag -> accesskey = $ this -> access_key ; return $ label_tag ; }
Get a SwatHtmlTag to display the title

Subclasses can change this to change their appearance.

@return SwatHtmlTag a tag object containing the title.
Get a SwatHtmlTag to display the title