Elgg\Ajax\Service::appendMessages PHP Метод

appendMessages() публичный Метод

Send system messages back with the response
public appendMessages ( string $hook, string $type, Elgg\Services\AjaxResponse $response, array $params ) : Elgg\Services\AjaxResponse
$hook string "ajax_response"
$type string "all"
$response Elgg\Services\AjaxResponse Ajax response
$params array Hook params
Результат Elgg\Services\AjaxResponse
    public function appendMessages($hook, $type, $response, $params)
    {
        if (!$response instanceof AjaxResponse) {
            return;
        }
        $response->getData()->_elgg_msgs = (object) $this->msgs->dumpRegister();
        return $response;
    }