@@ -20,14 +20,14 @@ class ProcessLayoutRenderElement
20
20
*
21
21
* @var bool
22
22
*/
23
- protected $ _isVarnishEnabled ;
23
+ protected $ isVarnishEnabled ;
24
24
25
25
/**
26
26
* Is full page cache enabled flag
27
27
*
28
28
* @var bool
29
29
*/
30
- protected $ _isFullPageCacheEnabled ;
30
+ protected $ isFullPageCacheEnabled ;
31
31
32
32
/**
33
33
* Class constructor
@@ -67,23 +67,23 @@ protected function _wrapEsi(
67
67
*/
68
68
protected function isFullPageCacheEnabled ()
69
69
{
70
- if ($ this ->_isFullPageCacheEnabled === null ) {
71
- $ this ->_isFullPageCacheEnabled = $ this ->_config ->isEnabled ();
70
+ if ($ this ->isFullPageCacheEnabled === null ) {
71
+ $ this ->isFullPageCacheEnabled = $ this ->_config ->isEnabled ();
72
72
}
73
- return $ this ->_isFullPageCacheEnabled ;
73
+ return $ this ->isFullPageCacheEnabled ;
74
74
}
75
75
76
76
/**
77
77
* Is varnish cache engine enabled
78
78
*
79
79
* @return bool
80
80
*/
81
- protected function isVarnishEbabled ()
81
+ protected function isVarnishEnabled ()
82
82
{
83
- if ($ this ->_isVarnishEnabled === null ) {
84
- $ this ->_isVarnishEnabled = ($ this ->_config ->getType () == \Magento \PageCache \Model \Config::VARNISH );
83
+ if ($ this ->isVarnishEnabled === null ) {
84
+ $ this ->isVarnishEnabled = ($ this ->_config ->getType () == \Magento \PageCache \Model \Config::VARNISH );
85
85
}
86
- return $ this ->_isVarnishEnabled ;
86
+ return $ this ->isVarnishEnabled ;
87
87
}
88
88
89
89
/**
@@ -106,7 +106,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
106
106
if ($ block instanceof \Magento \Framework \View \Element \AbstractBlock) {
107
107
$ blockTtl = $ block ->getTtl ();
108
108
$ output = $ transport ->getData ('output ' );
109
- if (isset ($ blockTtl ) && $ this ->isVarnishEbabled ()) {
109
+ if (isset ($ blockTtl ) && $ this ->isVarnishEnabled ()) {
110
110
$ output = $ this ->_wrapEsi ($ block , $ layout );
111
111
} elseif ($ block ->isScopePrivate ()) {
112
112
$ output = sprintf (
0 commit comments