You are here

public function UpdateOptionsCommand::render in Business Rules 8

Same name and namespace in other branches
  1. 2.x src/Ajax/UpdateOptionsCommand.php \Drupal\business_rules\Ajax\UpdateOptionsCommand::render()

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

Overrides CommandInterface::render

File

src/Ajax/UpdateOptionsCommand.php, line 39

Class

UpdateOptionsCommand
Ajax command to update form options.

Namespace

Drupal\business_rules\Ajax

Code

public function render() {
  return [
    'command' => 'updateOptionsCommand',
    'method' => 'html',
    'elementId' => $this->elementId,
    'options' => $this->options,
    'formatter' => $this->formatter,
  ];
}