public function SetFormCommand::render

Implements \Drupal\Core\Ajax\CommandInterface::render().

Overrides CommandInterface::render

File

drupal/core/modules/views/lib/Drupal/views/Ajax/SetFormCommand.php, line 59
Contains \Drupal\views\Ajax\SetFormCommand.

Class

SetFormCommand
Provides an AJAX command for setting a form in the views edit modal.

Namespace

Drupal\views\Ajax

Code

public function render() {
  $command = array(
    'command' => 'viewsSetForm',
    'output' => $this->output,
    'title' => $this->title,
  );
  if (isset($this->url)) {
    $command['url'] = $this->url;
  }
  return $command;
}