Elgg\Services\AjaxResponse::setData PHP Method

setData() public method

Set the response data
public setData ( stdClass $data ) : self
$data stdClass Response data. Must be able to be encoded in JSON.
return self
    public function setData(\stdClass $data);