src/Utilities/Bootstrap4CssSelector.php
public static function getFieldErrorSelector($formName, $fieldId)
    {
        $labelSelector = CssSelector::getLabelSelector($formName, $fieldId);

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

        $errorContainerSelector = static::getFieldErrorContainerSelector();

        return sprintf('%s %s', $labelSelector, $errorContainerSelector);
    }
public static function getFieldErrorSelector($formName, $fieldId)
    {
        $labelSelector = CssSelector::getLabelSelector($formName, $fieldId);

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

        $errorContainerSelector = static::getFieldErrorContainerSelector();

        return sprintf('%s %s', $labelSelector, $errorContainerSelector);
    }
public static function getFieldErrorSelector ( $ formName , $ fieldId ) { $ labelSelector = CssSelector :: getLabelSelector ( $ formName , $ fieldId ) ; if ( empty ( $ labelSelector ) ) { return '' ; } $ errorContainerSelector = static :: getFieldErrorContainerSelector ( ) ; return sprintf ( '%s %s' , $ labelSelector , $ errorContainerSelector ) ; }
Returns selector of field's validation error

@param string $formName Name of form (value of the "name" attribute)
@param string $fieldId  ID of field (value of the "id" attribute)
@return string
Returns selector of field s validation error