class TriggerPreviewCommand in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Ajax/TriggerPreviewCommand.php \Drupal\views\Ajax\TriggerPreviewCommand
Provides an AJAX command for triggering the views live preview.
This command is implemented in Drupal.AjaxCommands.prototype.viewsTriggerPreview.
Hierarchy
- class \Drupal\views\Ajax\TriggerPreviewCommand implements CommandInterface
Expanded class hierarchy of TriggerPreviewCommand
File
- core/
modules/ views/ src/ Ajax/ TriggerPreviewCommand.php, line 17 - Contains \Drupal\views\Ajax\TriggerPreviewCommand.
Namespace
Drupal\views\AjaxView source
class TriggerPreviewCommand implements CommandInterface {
/**
* {@inheritdoc}
*/
public function render() {
return array(
'command' => 'viewsTriggerPreview',
);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TriggerPreviewCommand:: |
public | function |
Return an array to be run through json_encode and sent to the client. Overrides CommandInterface:: |