Frontend\Core\Engine\Base\AjaxAction::getContent PHP Method

getContent() public method

With this function we'll be able to get the content and return it as a Symfony output object.
public getContent ( ) : Response
return Symfony\Component\HttpFoundation\Response
    public function getContent()
    {
        $statusCode = isset($this->content['code']) ? $this->content['code'] : 200;
        return new Response(json_encode($this->content), $statusCode, array('content-type' => 'application/json'));
    }