public static function getFieldDataValidationMessageKey($fieldName, $type, $validationName, $messageKey)
    {
        $stringService = StringService::get();

        return vsprintf(
            'fz-%s-%s-%s-%s',
            [
                $type,
                $stringService->sanitizeString($fieldName),
                $stringService->sanitizeString($validationName),
                $stringService->sanitizeString($messageKey)
            ]
        );
    }
public static function getFieldDataValidationMessageKey($fieldName, $type, $validationName, $messageKey)
    {
        $stringService = StringService::get();

        return vsprintf(
            'fz-%s-%s-%s-%s',
            [
                $type,
                $stringService->sanitizeString($fieldName),
                $stringService->sanitizeString($validationName),
                $stringService->sanitizeString($messageKey)
            ]
        );
    }
public static function getFieldDataValidationMessageKey ( $ fieldName , $ type , $ validationName , $ messageKey ) { $ stringService = StringService :: get ( ) ; return vsprintf ( 'fz-%s-%s-%s-%s' , [ $ type , $ stringService -> sanitizeString ( $ fieldName ) , $ stringService -> sanitizeString ( $ validationName ) , $ stringService -> sanitizeString ( $ messageKey ) ] ) ; }
Formats the data message attribute key for a given failed validation for
the given field name.

@param string $fieldName
@param string $type Type of the message: `error`, `warning` or `notice`.
@param string $validationName
@param string $messageKey
@return string
Formats the data message attribute key for a given failed validation for the given field name .