class 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
EditController.php in drupal/core/modules/edit/lib/Drupal/edit/EditController.php
Contains of \Drupal\edit\EditController.

File

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

Namespace

Drupal\edit\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('editFieldFormValidationErrors', $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 Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface::render
FieldFormValidationErrorsCommand::__construct public function Constructs a FieldFormValidationErrorsCommand object. Overrides BaseCommand::__construct