@@ -25,7 +25,7 @@ class NewVideo extends \Magento\Backend\Block\Widget\Form\Generic
25
25
/**
26
26
* @var \Magento\Framework\UrlInterface
27
27
*/
28
- protected $ _urlBuilder ;
28
+ protected $ urlBuilder ;
29
29
30
30
/**
31
31
* @var \Magento\Framework\Json\EncoderInterface
@@ -35,7 +35,6 @@ class NewVideo extends \Magento\Backend\Block\Widget\Form\Generic
35
35
/**
36
36
* @param \Magento\Backend\Block\Template\Context $context
37
37
* @param \Magento\ProductVideo\Helper\Media $mediaHelper
38
- * @param \Magento\Framework\UrlInterface $urlBuilder
39
38
* @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
40
39
* @param \Magento\Framework\Registry $registry
41
40
* @param \Magento\Framework\Data\FormFactory $formFactory
@@ -44,15 +43,14 @@ class NewVideo extends \Magento\Backend\Block\Widget\Form\Generic
44
43
public function __construct (
45
44
\Magento \Backend \Block \Template \Context $ context ,
46
45
\Magento \ProductVideo \Helper \Media $ mediaHelper ,
47
- \Magento \Framework \UrlInterface $ urlBuilder ,
48
46
\Magento \Framework \Json \EncoderInterface $ jsonEncoder ,
49
47
\Magento \Framework \Registry $ registry ,
50
48
\Magento \Framework \Data \FormFactory $ formFactory ,
51
49
array $ data = []
52
50
) {
53
51
parent ::__construct ($ context , $ registry , $ formFactory , $ data );
54
52
$ this ->mediaHelper = $ mediaHelper ;
55
- $ this ->_urlBuilder = $ urlBuilder ;
53
+ $ this ->urlBuilder = $ context -> getUrlBuilder () ;
56
54
$ this ->jsonEncoder = $ jsonEncoder ;
57
55
$ this ->setUseContainer (true );
58
56
}
@@ -273,7 +271,7 @@ protected function getNoteVideoUrl()
273
271
$ result = __ ('YouTube and Vimeo supported. ' );
274
272
if (is_null ($ this ->mediaHelper ->getYouTubeApiKey ())) {
275
273
$ result = __ (
276
- 'Vimeo supported.<br> '
274
+ 'Vimeo supported.<br / > '
277
275
. 'To add YouTube video, please <a href="%1">enter YouTube API Key</a> first. '
278
276
,
279
277
$ this ->getConfigApiKeyUrl ()
@@ -289,7 +287,7 @@ protected function getNoteVideoUrl()
289
287
*/
290
288
protected function getConfigApiKeyUrl ()
291
289
{
292
- return $ this ->_urlBuilder ->getUrl (
290
+ return $ this ->urlBuilder ->getUrl (
293
291
'adminhtml/system_config/edit ' ,
294
292
[
295
293
'section ' => 'catalog ' ,
0 commit comments