class TriggerPreviewCommand in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Ajax/TriggerPreviewCommand.php \Drupal\views\Ajax\TriggerPreviewCommand
- 9 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 \Drupal\Core\Ajax\CommandInterface
Expanded class hierarchy of TriggerPreviewCommand
1 file declares its use of TriggerPreviewCommand
- ViewsFormBase.php in core/
modules/ views_ui/ src/ Form/ Ajax/ ViewsFormBase.php
File
- core/
modules/ views/ src/ Ajax/ TriggerPreviewCommand.php, line 12
Namespace
Drupal\views\AjaxView source
class TriggerPreviewCommand implements CommandInterface {
/**
* {@inheritdoc}
*/
public function render() {
return [
'command' => 'viewsTriggerPreview',
];
}
}