src/Utilities/Bootstrap4CssSelector.php
public static function getRadioButtonErrorSelector($formName, $fieldSetIndex)
    {
        $fieldSetSelector = CssSelector::getFieldSetByIndexSelector($formName, $fieldSetIndex);

        if (empty($fieldSetSelector)) {
            return '';
        }

        $errorContainerSelector = static::getFieldErrorContainerSelector();

        return sprintf('%s legend.col-form-label %s', $fieldSetSelector, $errorContainerSelector);
    }
public static function getRadioButtonErrorSelector($formName, $fieldSetIndex)
    {
        $fieldSetSelector = CssSelector::getFieldSetByIndexSelector($formName, $fieldSetIndex);

        if (empty($fieldSetSelector)) {
            return '';
        }

        $errorContainerSelector = static::getFieldErrorContainerSelector();

        return sprintf('%s legend.col-form-label %s', $fieldSetSelector, $errorContainerSelector);
    }
public static function getRadioButtonErrorSelector ( $ formName , $ fieldSetIndex ) { $ fieldSetSelector = CssSelector :: getFieldSetByIndexSelector ( $ formName , $ fieldSetIndex ) ; if ( empty ( $ fieldSetSelector ) ) { return '' ; } $ errorContainerSelector = static :: getFieldErrorContainerSelector ( ) ; return sprintf ( '%s legend.col-form-label %s' , $ fieldSetSelector , $ errorContainerSelector ) ; }
Returns selector of radio-button's validation error

@param string $formName      Name of form (value of the "name" attribute)
@param int    $fieldSetIndex Index/Position of the field-set
@return string
Returns selector of radio - button s validation error