You are here

class FieldFormValidationErrorsCommand in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

Expanded class hierarchy of FieldFormValidationErrorsCommand

1 file declares its use of FieldFormValidationErrorsCommand
QuickEditController.php in core/modules/quickedit/src/QuickEditController.php
Contains \Drupal\quickedit\QuickEditController.

File

core/modules/quickedit/src/Ajax/FieldFormValidationErrorsCommand.php, line 16
Contains \Drupal\quickedit\Ajax\FieldFormValidationErrorsCommand.

Namespace

Drupal\quickedit\Ajax
View 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

Namesort descending Modifiers Type Description Overrides
BaseCommand::$command protected property The name of the command.
BaseCommand::$data protected property The data to pass on to the client side.
BaseCommand::render public function Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render 1
FieldFormValidationErrorsCommand::__construct public function Constructs a FieldFormValidationErrorsCommand object. Overrides BaseCommand::__construct