You are here

public function UpdateOptionsCommand::render in Business Rules 2.x

Same name and namespace in other branches
  1. 8 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 64

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,
    'multiple' => $this->multiple,
  ];
}