You are here

public function ResultsCommand::render in FullCalendar 8.4

Same name and namespace in other branches
  1. 8.5 src/Ajax/ResultsCommand.php \Drupal\fullcalendar\Ajax\ResultsCommand::render()
  2. 8 src/Ajax/ResultsCommand.php \Drupal\fullcalendar\Ajax\ResultsCommand::render()
  3. 8.2 src/Ajax/ResultsCommand.php \Drupal\fullcalendar\Ajax\ResultsCommand::render()
  4. 8.3 src/Ajax/ResultsCommand.php \Drupal\fullcalendar\Ajax\ResultsCommand::render()

Return an array to be run through json_encode and sent to the client.

Overrides CommandInterface::render

File

src/Ajax/ResultsCommand.php, line 29

Class

ResultsCommand
Provides an AJAX command for showing the save and cancel buttons.

Namespace

Drupal\fullcalendar\Ajax

Code

public function render() {
  return [
    'command' => 'ResultsCommand',
    'data' => $this->data,
  ];
}