class FieldFormCommand in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/quickedit/src/Ajax/FieldFormCommand.php \Drupal\quickedit\Ajax\FieldFormCommand
AJAX command for passing a rendered field form to Quick Edit's JavaScript app.
Hierarchy
- class \Drupal\Core\Ajax\BaseCommand implements CommandInterface
- class \Drupal\quickedit\Ajax\FieldFormCommand
Expanded class hierarchy of FieldFormCommand
1 file declares its use of FieldFormCommand
- QuickEditController.php in core/
modules/ quickedit/ src/ QuickEditController.php - Contains \Drupal\quickedit\QuickEditController.
File
- core/
modules/ quickedit/ src/ Ajax/ FieldFormCommand.php, line 16 - Contains \Drupal\quickedit\Ajax\FieldFormCommand.
Namespace
Drupal\quickedit\AjaxView 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('quickeditFieldForm', $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 |
FieldFormCommand:: |
public | function |
Constructs a FieldFormCommand object. Overrides BaseCommand:: |