protected getTagName ( ) : string | ||
return | string | tag name of the label, returns 'label' if there is an associated control, 'span' otherwise. |
protected function getTagName()
{
return $this->getForControl() === '' ? 'span' : 'label';
}