3 namespace Drupal\views\Ajax;
5 use Drupal\Core\Ajax\CommandInterface;
8 * Provides an AJAX command for showing the save and cancel buttons.
10 * This command is implemented in Drupal.AjaxCommands.prototype.viewsShowButtons.
12 class ShowButtonsCommand implements CommandInterface {
16 * Whether the view has been changed.
23 * Constructs a \Drupal\views\Ajax\ShowButtonsCommand object.
25 * @param bool $changed
26 * Whether the view has been changed.
28 public function __construct($changed) {
29 $this->changed = $changed;
35 public function render() {
37 'command' => 'viewsShowButtons',
38 'changed' => $this->changed,