Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Robots.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Robots\Model;
7 
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',
40  );
41  }
42 }
__construct(ScopeConfigInterface $scopeConfig)
Definition: Robots.php:24