comparison core/modules/views/src/Ajax/TriggerPreviewCommand.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace Drupal\views\Ajax;
4
5 use Drupal\Core\Ajax\CommandInterface;
6
7 /**
8 * Provides an AJAX command for triggering the views live preview.
9 *
10 * This command is implemented in Drupal.AjaxCommands.prototype.viewsTriggerPreview.
11 */
12 class TriggerPreviewCommand implements CommandInterface {
13
14 /**
15 * {@inheritdoc}
16 */
17 public function render() {
18 return [
19 'command' => 'viewsTriggerPreview',
20 ];
21 }
22
23 }