class ResultsCommand in FullCalendar 8
Same name and namespace in other branches
- 8.5 src/Ajax/ResultsCommand.php \Drupal\fullcalendar\Ajax\ResultsCommand
- 8.2 src/Ajax/ResultsCommand.php \Drupal\fullcalendar\Ajax\ResultsCommand
- 8.3 src/Ajax/ResultsCommand.php \Drupal\fullcalendar\Ajax\ResultsCommand
- 8.4 src/Ajax/ResultsCommand.php \Drupal\fullcalendar\Ajax\ResultsCommand
Provides an AJAX command for showing the save and cancel buttons.
This command is implemented in Drupal.AjaxCommands.prototype.ResultsCommand.
Hierarchy
- class \Drupal\fullcalendar\Ajax\ResultsCommand implements CommandInterface
Expanded class hierarchy of ResultsCommand
1 file declares its use of ResultsCommand
- ResultsController.php in src/
Controller/ ResultsController.php
1 string reference to 'ResultsCommand'
- ResultsCommand::render in src/
Ajax/ ResultsCommand.php - Return an array to be run through json_encode and sent to the client.
File
- src/
Ajax/ ResultsCommand.php, line 12
Namespace
Drupal\fullcalendar\AjaxView source
class ResultsCommand implements CommandInterface {
protected $data;
/**
* Constructs a \Drupal\views\Ajax\ReplaceTitleCommand object.
*
* @param string $data
* The form to display in the modal.
*/
public function __construct($data) {
$this->data = $data;
}
/**
* {@inheritdoc}
*/
public function render() {
return [
'command' => 'ResultsCommand',
'data' => $this->data,
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ResultsCommand:: |
protected | property | ||
ResultsCommand:: |
public | function |
Return an array to be run through json_encode and sent to the client. Overrides CommandInterface:: |
|
ResultsCommand:: |
public | function | Constructs a \Drupal\views\Ajax\ReplaceTitleCommand object. |