You are here

public function PrivateMessageMembersAutocompleteResponseCommand::render in Private Message 8.2

Same name and namespace in other branches
  1. 8 src/Ajax/PrivateMessageMembersAutocompleteResponseCommand.php \Drupal\private_message\Ajax\PrivateMessageMembersAutocompleteResponseCommand::render()

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

Overrides CommandInterface::render

File

src/Ajax/PrivateMessageMembersAutocompleteResponseCommand.php, line 49

Class

PrivateMessageMembersAutocompleteResponseCommand
Ajax command to return autocomplete member results to the browser.

Namespace

Drupal\private_message\Ajax

Code

public function render() {
  return [
    'command' => 'privateMessageMembersAutocompleteResponse',
    'string' => $this->string,
    'userInfo' => $this->userInfo,
  ];
}