File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
CatalogSearch/Model/ResourceModel/Fulltext
PageCache/Block/System/Config/Form/Field Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ public function __construct(
173
173
174
174
/**
175
175
* @deprecated
176
+ * @return \Magento\Search\Api\SearchInterface
176
177
*/
177
178
private function getSearch ()
178
179
{
@@ -186,7 +187,7 @@ private function getSearch()
186
187
* @deprecated
187
188
* @param \Magento\Search\Api\SearchInterface $object
188
189
*/
189
- public function setSearch ($ object )
190
+ public function setSearch (\ Magento \ Search \ Api \ SearchInterface $ object )
190
191
{
191
192
$ this ->search = $ object ;
192
193
}
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ protected function _getElementHtml(\Magento\Framework\Data\Form\Element\Abstract
29
29
30
30
$ data = [
31
31
'id ' => 'system_full_page_cache_varnish_export_button_version ' . $ this ->getVarnishVersion (),
32
- 'label ' => $ this ->_getLabel (),
33
- 'onclick ' => "setLocation(' " . $ this ->_getUrl ($ params ) . "') " ,
32
+ 'label ' => $ this ->getLabel (),
33
+ 'onclick ' => "setLocation(' " . $ this ->getVarnishUrl ($ params ) . "') " ,
34
34
];
35
35
36
36
$ html = $ buttonBlock ->setData ($ data )->toHtml ();
@@ -50,7 +50,7 @@ public function getVarnishVersion()
50
50
/**
51
51
* @return \Magento\Framework\Phrase
52
52
*/
53
- protected function _getLabel ()
53
+ private function getLabel ()
54
54
{
55
55
return __ ('Export VCL for Varnish %1 ' , $ this ->getVarnishVersion ());
56
56
}
@@ -60,7 +60,7 @@ protected function _getLabel()
60
60
*
61
61
* @return string
62
62
*/
63
- protected function _getUrl ($ params = [])
63
+ private function getVarnishUrl ($ params = [])
64
64
{
65
65
return $ this ->getUrl ('*/PageCache/exportVarnishConfig ' , $ params );
66
66
}
You can’t perform that action at this time.
0 commit comments