public function FieldFormValidationErrorsCommand::__construct

Constructs a FieldFormValidationErrorsCommand object.

Parameters

string $data: The data to pass on to the client side.

Overrides BaseCommand::__construct

File

drupal/core/modules/edit/lib/Drupal/edit/Ajax/FieldFormValidationErrorsCommand.php, line 24
Contains \Drupal\edit\Ajax\FieldFormValidationErrorsCommand.

Class

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

Namespace

Drupal\edit\Ajax

Code

public function __construct($data) {
  parent::__construct('editFieldFormValidationErrors', $data);
}