88namespace Magento \Email \Model \Template ;
99
1010use Exception ;
11+ use Magento \Backend \Model \Url as BackendModelUrl ;
1112use Magento \Cms \Block \Block ;
1213use Magento \Framework \App \Area ;
1314use Magento \Framework \App \Config \ScopeConfigInterface ;
@@ -69,12 +70,14 @@ class Filter extends Template
6970 /**
7071 * @var bool
7172 * @deprecated SID is not being used as query parameter anymore.
73+ * @see storeDirective
7274 */
7375 protected $ _useSessionInUrl = false ;
7476
7577 /**
7678 * @var array
7779 * @deprecated 101.0.4 Use the new Directive Processor interfaces
80+ * @see applyModifiers
7881 */
7982 protected $ _modifiers = ['nl2br ' => '' ];
8083
@@ -281,6 +284,7 @@ public function setUseAbsoluteLinks($flag)
281284 * @return $this
282285 * @SuppressWarnings(PHPMD.UnusedFormalParameter)
283286 * @deprecated SID query parameter is not used in URLs anymore.
287+ * @see setUseSessionInUrl
284288 */
285289 public function setUseSessionInUrl ($ flag )
286290 {
@@ -585,7 +589,9 @@ public function storeDirective($construction)
585589 * Pass extra parameter to distinguish stores urls for property Magento\Framework\Url $cacheUrl
586590 * in multi-store environment
587591 */
588- $ this ->urlModel ->setScope ($ this ->_storeManager ->getStore ());
592+ if (!$ this ->urlModel instanceof BackendModelUrl) {
593+ $ this ->urlModel ->setScope ($ this ->_storeManager ->getStore ());
594+ }
589595 $ params ['_escape_params ' ] = $ this ->_storeManager ->getStore ()->getCode ();
590596
591597 return $ this ->urlModel ->getUrl ($ path , $ params );
@@ -688,6 +694,7 @@ public function varDirective($construction)
688694 * @param string $default assumed modifier if none present
689695 * @return array
690696 * @deprecated 101.0.4 Use the new FilterApplier or Directive Processor interfaces
697+ * @see explodeModifiers
691698 */
692699 protected function explodeModifiers ($ value , $ default = null )
693700 {
@@ -707,6 +714,7 @@ protected function explodeModifiers($value, $default = null)
707714 * @param string $modifiers
708715 * @return string
709716 * @deprecated 101.0.4 Use the new FilterApplier or Directive Processor interfaces
717+ * @see applyModifiers
710718 */
711719 protected function applyModifiers ($ value , $ modifiers )
712720 {
@@ -736,6 +744,7 @@ protected function applyModifiers($value, $modifiers)
736744 * @param string $type
737745 * @return string
738746 * @deprecated 101.0.4 Use the new FilterApplier or Directive Processor interfaces
747+ * @see modifierEscape
739748 */
740749 public function modifierEscape ($ value , $ type = 'html ' )
741750 {
0 commit comments