public function PrivateMessageMemberUsernameValidatedCommand::__construct in Private Message 8
Same name and namespace in other branches
- 8.2 src/Ajax/PrivateMessageMemberUsernameValidatedCommand.php \Drupal\private_message\Ajax\PrivateMessageMemberUsernameValidatedCommand::__construct()
Constructs a PrivateMessageMembersAutocompleteResponseCommand object.
Parameters
string $username: The username that was validated.
bool $validUsername: A boolean indicatating whether the given username is valid to be used as a member in a private message thread.
File
- src/
Ajax/ PrivateMessageMemberUsernameValidatedCommand.php, line 37
Class
- PrivateMessageMemberUsernameValidatedCommand
- Ajax command to tell the browser whether a username has been validated.
Namespace
Drupal\private_message\AjaxCode
public function __construct($username, $validUsername) {
$this->username = $username;
$this->validUsername = $validUsername;
}