src/View/Helper/FormHelper.php
public function getLabel($text, $info = null)
    {
        $options = [
            'text' => $text,
            'templateVars' => []
        ];

        if ($info !== null) {
            $options['templateVars']['labelInfo'] = '<small>' . $info . '</small>';
        }

        return $options;
    }
public function getLabel($text, $info = null)
    {
        $options = [
            'text' => $text,
            'templateVars' => []
        ];

        if ($info !== null) {
            $options['templateVars']['labelInfo'] = '<small>' . $info . '</small>';
        }

        return $options;
    }
public function getLabel ( $ text , $ info = null ) { $ options = [ 'text' => $ text , 'templateVars' => [ ] ] ; if ( $ info !== null ) { $ options [ 'templateVars' ] [ 'labelInfo' ] = '<small>' . $ info . '</small>' ; } return $ options ; }
Get the options array for a label.
This handles the optional placement of an info text below the label.

@param string $text The label text.
@param null|string $info The optional label info.
@return array
Get the options array for a label . This handles the optional placement of an info text below the label .