function AjaxTestCommandReturnPromise::render
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/ajax_test/src/Ajax/AjaxTestCommandReturnPromise.php \Drupal\ajax_test\Ajax\AjaxTestCommandReturnPromise::render()
- 10 core/modules/system/tests/modules/ajax_test/src/Ajax/AjaxTestCommandReturnPromise.php \Drupal\ajax_test\Ajax\AjaxTestCommandReturnPromise::render()
Implements Drupal\Core\Ajax\CommandInterface:render().
Overrides AppendCommand::render
File
-
core/
modules/ system/ tests/ modules/ ajax_test/ src/ Ajax/ AjaxTestCommandReturnPromise.php, line 15
Class
- AjaxTestCommandReturnPromise
- Test Ajax command.
Namespace
Drupal\ajax_test\AjaxCode
public function render() {
return [
'command' => 'ajaxCommandReturnPromise',
'method' => 'append',
'selector' => $this->selector,
'data' => $this->getRenderedContent(),
'settings' => $this->settings,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.