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
module-robots
Controller
Index
Index.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Robots\Controller\Index
;
7
8
use
Magento\Framework\App\Action\Action
;
9
use
Magento\Framework\App\Action\Context
;
10
use
Magento\Framework\View\Result\Page
;
11
use
Magento\Framework\View\Result\PageFactory
;
12
16
class
Index
extends
Action
17
{
21
private
$resultPageFactory;
22
27
public
function
__construct
(
28
Context
$context,
29
PageFactory
$resultPageFactory
30
) {
31
$this->resultPageFactory = $resultPageFactory;
32
33
parent::__construct($context);
34
}
35
41
public
function
execute
()
42
{
44
$resultPage = $this->resultPageFactory->create(
true
);
45
$resultPage->addHandle(
'robots_index_index'
);
46
$resultPage->setHeader(
'Content-Type'
,
'text/plain'
);
47
return
$resultPage;
48
}
49
}
Magento\Robots\Controller\Index\Index\__construct
__construct(Context $context, PageFactory $resultPageFactory)
Definition:
Index.php:27
Magento\Robots\Controller\Index
Definition:
Index.php:6
Magento\Framework\View\Result\Page
Definition:
Page.php:30
Magento\Robots\Controller\Index\Index
Definition:
Index.php:16
Magento\Framework\App\ActionInterface\execute
execute()
Magento\Framework\View\Result\PageFactory
Definition:
PageFactory.php:19
Magento\Framework\App\Action\Context
Definition:
Context.php:24
Magento\Framework\App\Action\Action
Definition:
Action.php:25