-
Notifications
You must be signed in to change notification settings - Fork 0
/
Js.php
36 lines (36 loc) · 1.2 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
32
33
34
35
36
<?php
namespace Mineralair\Core;
use Magento\Framework\View\Element\Template as _P;
/**
* 2019-03-15
* "Show the «Sorry for the inconvenience» popup
* if a customer tries to use the PayPal or Amazon Pay payment method
* for an order with an «autoshipment» product": https://github.com/mineralair/core/issues/2
* @final Unable to use the PHP «final» keyword here because of the M2 code generation.
*/
class Js extends _P {
/**
* 2019-03-15
* @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 !mnr_recurring_has() ? '' : df_cc_n(
parent::_toHtml(), df_js(__CLASS__)
);}
}