function TabledragWarningCommand::render

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Ajax/TabledragWarningCommand.php \Drupal\Core\Ajax\TabledragWarningCommand::render()

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

Overrides CommandInterface::render

File

core/lib/Drupal/Core/Ajax/TabledragWarningCommand.php, line 37

Class

TabledragWarningCommand
AJAX command for conveying changed tabledrag rows.

Namespace

Drupal\Core\Ajax

Code

public function render() {
  return [
    'command' => 'tabledragChanged',
    'id' => $this->id,
    'tabledrag_instance' => $this->tabledrag_instance,
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.