class FieldFormCommand

AJAX command for passing a rendered field form to Edit's JavaScript app.

Hierarchy

Expanded class hierarchy of FieldFormCommand

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

Namespace

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

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