-
Notifications
You must be signed in to change notification settings - Fork 0
/
Js.php
31 lines (31 loc) · 1 KB
/
Js.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
namespace ClinEssentials\Core;
use Magento\Framework\View\Element\AbstractBlock as _P;
// 2019-08-12
/** @final Unable to use the PHP «final» keyword here because of the M2 code generation. */
class Js extends _P {
/**
* 2019-08-12
* @override
* @see _P::_toHtml()
* @used-by _P::toHtml():
* $html = $this->_loadCache();
* if ($html === false) {
* if ($this->hasData('translate_inline')) {
* $this->inlineTranslation->suspend($this->getData('translate_inline'));
* }
* $this->_beforeToHtml();
* $html = $this->_toHtml();
* $this->_saveCache($html);
* if ($this->hasData('translate_inline')) {
* $this->inlineTranslation->resume();
* }
* }
* $html = $this->_afterToHtml($html);
* https://github.com/magento/magento2/blob/2.2.0/lib/internal/Magento/Framework/View/Element/AbstractBlock.php#L643-L689
* @return string
*/
final protected function _toHtml() {return
'<script type="text/x-magento-init">{"*": {"ClinEssentials_Core\/main": {}}}</script>'
;}
}