class FieldFormValidationErrorsCommand extends BaseCommand (View source)

AJAX command to indicate a field form was attempted to be saved but failed validation and pass the validation errors.

Properties

protected string $command

The name of the command.

from  BaseCommand
protected string $data

The data to pass on to the client side.

from  BaseCommand

Methods

__construct(string $data)

Constructs a FieldFormValidationErrorsCommand object.

render()

Return an array to be run through json_encode and sent to the client.

Details

__construct(string $data)

Constructs a FieldFormValidationErrorsCommand object.

Parameters

string $data

The data to pass on to the client side.

render()

Return an array to be run through json_encode and sent to the client.