public function JcarouselAppendCommand::render in jCarousel 8.4
Same name and namespace in other branches
- 8.5 src/Ajax/JcarouselAppendCommand.php \Drupal\jcarousel\Ajax\JcarouselAppendCommand::render()
Return an array to be run through json_encode and sent to the client.
Overrides CommandInterface::render
File
- src/
Ajax/ JcarouselAppendCommand.php, line 76 - Contains \Drupal\Core\Ajax\JcarouselAppendCommand.
Class
- JcarouselAppendCommand
- An AJAX command for adding jCarousel items dynamically.
Namespace
Drupal\jcarousel\AjaxCode
public function render() {
return array(
'command' => 'jcarousel_append',
'method' => 'append',
'selector' => $this->selector,
'data' => $this
->getRenderedContent(),
'settings' => $this->settings,
);
}