You are here

public function PrivateMessageMembersAutocompleteResponseCommand::__construct in Private Message 8.2

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

Constructs a PrivateMessageMembersAutocompleteResponseCommand object.

Parameters

string $string: The string that was searched for.

array $userInfo: An array of user info, with each element of the array containing the following keys:

  • uid: The User ID of the user
  • username: The username of the user.

File

src/Ajax/PrivateMessageMembersAutocompleteResponseCommand.php, line 41

Class

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

Namespace

Drupal\private_message\Ajax

Code

public function __construct($string, array $userInfo) {
  $this->string = $string;
  $this->userInfo = $userInfo;
}