Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Controller
Result
Raw.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Controller\Result
;
8
9
use
Magento\Framework\App\Response\HttpInterface
as HttpResponseInterface;
10
use
Magento\Framework\Controller\AbstractResult
;
11
16
class
Raw
extends
AbstractResult
17
{
21
protected
$contents
;
22
27
public
function
setContents
(
$contents
)
28
{
29
$this->contents =
$contents
;
30
return
$this;
31
}
32
36
protected
function
render
(HttpResponseInterface
$response
)
37
{
38
$response
->setBody($this->contents);
39
return
$this;
40
}
41
}
Magento\Framework\Controller\Result
Definition:
Forward.php:7
$response
$response
Definition:
404.php:11
Magento\Framework\Controller\Result\Raw\setContents
setContents($contents)
Definition:
Raw.php:27
Magento\Framework\Controller\Result\Raw\render
render(HttpResponseInterface $response)
Definition:
Raw.php:36
Magento\Framework\Controller\Result\Raw
Definition:
Raw.php:16
Magento\Framework\Controller\AbstractResult
Definition:
AbstractResult.php:12
Magento\Framework\App\Response\HttpInterface
Definition:
HttpInterface.php:14
Magento\Framework\Controller\Result\Raw\$contents
$contents
Definition:
Raw.php:21