Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
reset.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
14 $jsonHelper = $this->helper('Magento\Framework\Json\Helper\Data');
15 ?>
16 
17 <script>
18  require([
19  'jquery'
20  ], function ($) {
21  window.resetRobotsToDefault = function(){
22  $('#design_search_engine_robots_custom_instructions').val(<?php
23  /* @escapeNotVerified */ echo $jsonHelper->jsonEncode($block->getRobotsDefaultCustomInstructions())
24  ?>);
25  }
26  });
27 </script>
28 
29 <?= $block->getButtonHtml() ?>
$jsonHelper
Definition: reset.phtml:14
$block
Definition: block.php:8