class FieldFormSavedCommand

AJAX command to indicate a field form was saved without validation errors and pass the rerendered field to Edit's JavaScript app.

Hierarchy

Expanded class hierarchy of FieldFormSavedCommand

1 file declares its use of FieldFormSavedCommand
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/FieldFormSavedCommand.php, line 16
Contains \Drupal\edit\Ajax\FieldFormSavedCommand.

Namespace

Drupal\edit\Ajax
View source
class FieldFormSavedCommand extends BaseCommand {

  /**
   * Constructs a FieldFormSavedCommand object.
   *
   * @param string $data
   *   The data to pass on to the client side.
   */
  public function __construct($data) {
    parent::__construct('editFieldFormSaved', $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
FieldFormSavedCommand::__construct public function Constructs a FieldFormSavedCommand object. Overrides BaseCommand::__construct