Framework/W/Result.php
function renderResult(IResponse $r) {
		if ($this->_code) {
			$r->setHttpResponseCode($this->_code);
		}
		foreach ($this->_headers as $headerData) {
			$r->setHeader($headerData['name'], $headerData['value'], $headerData['replace']);
		}
		$this->render($r);
		return null;
	}
function renderResult(IResponse $r) {
		if ($this->_code) {
			$r->setHttpResponseCode($this->_code);
		}
		foreach ($this->_headers as $headerData) {
			$r->setHeader($headerData['name'], $headerData['value'], $headerData['replace']);
		}
		$this->render($r);
		return null;
	}
function renderResult ( IResponse $ r ) { if ( $ this -> _code ) { $ r -> setHttpResponseCode ( $ this -> _code ) ; } foreach ( $ this -> _headers as $ headerData ) { $ r -> setHeader ( $ headerData [ 'name' ] , $ headerData [ 'value' ] , $ headerData [ 'replace' ] ) ; } $ this -> render ( $ r ) ; return null ; }
2016-08-24 Render content.
@final Unable to use the PHP «final» keyword here because of the M2 code generation.
@override
@see \Magento\Framework\Controller\ResultInterface::renderResult()
@see \Magento\Framework\Controller\AbstractResult::renderResult()
@used-by \Magento\Framework\App\Http::launch():
// TODO: Temporary solution until all controllers return ResultInterface (MAGETWO-28359)
if ($result instanceof ResultInterface) {
$this->registry->register('use_page_cache_plugin', true, true);
$result->renderResult($this->_response);
} elseif ($result instanceof HttpInterface) {
$this->_response = $result;
} else {
throw new \InvalidArgumentException('Invalid return type');
}
https://github.com/magento/magento2/blob/2.2.1/lib/internal/Magento/Framework/App/Http.php#L122-L149
@param IResponse|IHttpResponse|HttpResponse $r
@return null It is not used.
2016 - 08 - 24 Render content .