function AjaxTestCommandReturnPromise::render

Same name and namespace in other branches
  1. 10 core/modules/system/tests/modules/ajax_test/src/Ajax/AjaxTestCommandReturnPromise.php \Drupal\ajax_test\Ajax\AjaxTestCommandReturnPromise::render()
  2. 9 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 17

Class

AjaxTestCommandReturnPromise
Test Ajax command.

Namespace

Drupal\ajax_test\Ajax

Code

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.