class FieldFormValidationErrorsCommand in Drupal 9
Same name and namespace in other branches
- 8 core/modules/quickedit/src/Ajax/FieldFormValidationErrorsCommand.php \Drupal\quickedit\Ajax\FieldFormValidationErrorsCommand
AJAX command to indicate a field form was attempted to be saved but failed validation and pass the validation errors.
Hierarchy
- class \Drupal\Core\Ajax\BaseCommand implements CommandInterface
- class \Drupal\quickedit\Ajax\FieldFormValidationErrorsCommand
Expanded class hierarchy of FieldFormValidationErrorsCommand
1 file declares its use of FieldFormValidationErrorsCommand
- QuickEditController.php in core/
modules/ quickedit/ src/ QuickEditController.php
File
- core/
modules/ quickedit/ src/ Ajax/ FieldFormValidationErrorsCommand.php, line 11
Namespace
Drupal\quickedit\AjaxView source
class FieldFormValidationErrorsCommand extends BaseCommand {
/**
* Constructs a FieldFormValidationErrorsCommand object.
*
* @param string $data
* The data to pass on to the client side.
*/
public function __construct($data) {
parent::__construct('quickeditFieldFormValidationErrors', $data);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BaseCommand:: |
protected | property | The name of the command. | |
BaseCommand:: |
protected | property | The data to pass on to the client side. | |
BaseCommand:: |
public | function |
Return an array to be run through json_encode and sent to the client. Overrides CommandInterface:: |
1 |
FieldFormValidationErrorsCommand:: |
public | function |
Constructs a FieldFormValidationErrorsCommand object. Overrides BaseCommand:: |