src/Forms/Schema/FormSchema.php
protected function getSchemaForMessage($message)
    {
        // Form schema messages treat simple strings as plain text, so nest for html messages
        $value = $message['message'];
        if ($message['messageCast'] === ValidationResult::CAST_HTML) {
            $value = ['html' => $message];
        }
        return [
            'value' => $value,
            'type' => $message['messageType'],
            'field' => empty($message['fieldName']) ? null : $message['fieldName'],
        ];
    }
protected function getSchemaForMessage($message)
    {
        // Form schema messages treat simple strings as plain text, so nest for html messages
        $value = $message['message'];
        if ($message['messageCast'] === ValidationResult::CAST_HTML) {
            $value = ['html' => $message];
        }
        return [
            'value' => $value,
            'type' => $message['messageType'],
            'field' => empty($message['fieldName']) ? null : $message['fieldName'],
        ];
    }
protected function getSchemaForMessage ( $ message ) { // Form schema messages treat simple strings as plain text, so nest for html messages $ value = $ message [ 'message' ] ; if ( $ message [ 'messageCast' ] === ValidationResult :: CAST_HTML ) { $ value = [ 'html' => $ message ] ; } return [ 'value' => $ value , 'type' => $ message [ 'messageType' ] , 'field' => empty ( $ message [ 'fieldName' ] ) ? null : $ message [ 'fieldName' ] , ] ; }
Return form schema for encoded validation message

@param array $message Internal ValidationResult format for this message
@return array Form schema format for this message
Return form schema for encoded validation message