-
Notifications
You must be signed in to change notification settings - Fork 0
/
Js.php
29 lines (29 loc) · 997 Bytes
/
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
<?php
namespace Dfe\Sift;
use Dfe\Sift\Settings as S;
use Magento\Framework\View\Element\AbstractBlock as _P;
# 2020-01-23
/** @final Unable to use the PHP «final» keyword here because of the M2 code generation. */
class Js extends _P {
/**
* 2020-01-24
* @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
*/
final protected function _toHtml():string {return df_js(__CLASS__, '', ['key' => S::s()->frontendKey()]);}
}