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
Model
Robots.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Robots\Model
;
7
8
use
Magento\Framework\App\Config\ScopeConfigInterface
;
9
use
Magento\Store\Model\ScopeInterface
;
10
14
class
Robots
15
{
19
private
$scopeConfig;
20
24
public
function
__construct
(
25
ScopeConfigInterface
$scopeConfig
26
) {
27
$this->scopeConfig = $scopeConfig;
28
}
29
35
public
function
getData
()
36
{
37
return
$this->scopeConfig->getValue(
38
'design/search_engine_robots/custom_instructions'
,
39
ScopeInterface::SCOPE_WEBSITE
40
);
41
}
42
}
Magento\Robots\Model\Robots
Definition:
Robots.php:14
Magento\Robots\Model\Robots\getData
getData()
Definition:
Robots.php:35
Magento\Robots\Model\Robots\__construct
__construct(ScopeConfigInterface $scopeConfig)
Definition:
Robots.php:24
Magento\Store\Model\ScopeInterface
Definition:
ScopeInterface.php:12
Magento\Framework\App\Config\ScopeConfigInterface
Definition:
ScopeConfigInterface.php:15
Magento\Robots\Model
Magento\Store\Model\ScopeInterface\SCOPE_WEBSITE
const SCOPE_WEBSITE
Definition:
ScopeInterface.php:23