HBS_VALIDATION_RESULTS 

Returns the Extbase validation results for the current renderable. Without an output instruction the raw Result object is returned.

Output instructions

Name Type
string instruction
string instruction
string instruction
string instruction
string instruction
EACH_ERROR
Type
string instruction

Iterates over every error and processes each with the sub-configuration in output . On composite renderables the result is a dictionary keyed by property path; on leaf elements it is a flat list.

EACH_RENDERABLE
Type
string instruction

Iterates over renderables that have at least one error. Processes each with the sub-configuration, then passes the result through a second round of process-form resolution so nested HBS_* objects are resolved too. The result is a dictionary keyed by property path.

ERROR_MESSAGE
Type
string instruction

Returns the translated message for the first error in the result set.

HAS_ERRORS
Type
string instruction

Returns true if the result set contains at least one error, false otherwise.

RESULT
Type
string instruction

Returns a property from the Result object. Requires output.propertyPath to be set.

Example

errors = HBS_VALIDATION_RESULTS
errors {
    output = EACH_RENDERABLE
    output {
        label = HBS_LABEL

        message = HBS_VALIDATION_RESULTS
        message.output = ERROR_MESSAGE
    }
}
Copied!