8
8
namespace Magento \Email \Model \Template ;
9
9
10
10
use Exception ;
11
+ use Magento \Backend \Model \Url as BackendModelUrl ;
11
12
use Magento \Cms \Block \Block ;
12
13
use Magento \Framework \App \Area ;
13
14
use Magento \Framework \App \Config \ScopeConfigInterface ;
@@ -69,12 +70,14 @@ class Filter extends Template
69
70
/**
70
71
* @var bool
71
72
* @deprecated SID is not being used as query parameter anymore.
73
+ * @see storeDirective
72
74
*/
73
75
protected $ _useSessionInUrl = false ;
74
76
75
77
/**
76
78
* @var array
77
79
* @deprecated 101.0.4 Use the new Directive Processor interfaces
80
+ * @see applyModifiers
78
81
*/
79
82
protected $ _modifiers = ['nl2br ' => '' ];
80
83
@@ -281,6 +284,7 @@ public function setUseAbsoluteLinks($flag)
281
284
* @return $this
282
285
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
283
286
* @deprecated SID query parameter is not used in URLs anymore.
287
+ * @see setUseSessionInUrl
284
288
*/
285
289
public function setUseSessionInUrl ($ flag )
286
290
{
@@ -585,7 +589,9 @@ public function storeDirective($construction)
585
589
* Pass extra parameter to distinguish stores urls for property Magento\Framework\Url $cacheUrl
586
590
* in multi-store environment
587
591
*/
588
- $ this ->urlModel ->setScope ($ this ->_storeManager ->getStore ());
592
+ if (!$ this ->urlModel instanceof BackendModelUrl) {
593
+ $ this ->urlModel ->setScope ($ this ->_storeManager ->getStore ());
594
+ }
589
595
$ params ['_escape_params ' ] = $ this ->_storeManager ->getStore ()->getCode ();
590
596
591
597
return $ this ->urlModel ->getUrl ($ path , $ params );
@@ -688,6 +694,7 @@ public function varDirective($construction)
688
694
* @param string $default assumed modifier if none present
689
695
* @return array
690
696
* @deprecated 101.0.4 Use the new FilterApplier or Directive Processor interfaces
697
+ * @see explodeModifiers
691
698
*/
692
699
protected function explodeModifiers ($ value , $ default = null )
693
700
{
@@ -707,6 +714,7 @@ protected function explodeModifiers($value, $default = null)
707
714
* @param string $modifiers
708
715
* @return string
709
716
* @deprecated 101.0.4 Use the new FilterApplier or Directive Processor interfaces
717
+ * @see applyModifiers
710
718
*/
711
719
protected function applyModifiers ($ value , $ modifiers )
712
720
{
@@ -736,6 +744,7 @@ protected function applyModifiers($value, $modifiers)
736
744
* @param string $type
737
745
* @return string
738
746
* @deprecated 101.0.4 Use the new FilterApplier or Directive Processor interfaces
747
+ * @see modifierEscape
739
748
*/
740
749
public function modifierEscape ($ value , $ type = 'html ' )
741
750
{
0 commit comments