<?php

namespace Drupal\basket\Ajax;

use Drupal\Core\Ajax\ReplaceCommand;

class BasketReplaceCommand extends ReplaceCommand {
  /**
   * Implements Drupal\Core\Ajax\CommandInterface:render().
   */
  public function render() {
    return array(
      'command'   => 'basketReplaceWith',
      'selector'  => $this->selector,
      'data'      => $this->getRenderedContent(),
      'settings'  => $this->settings,
    );
  }
}
