Skip to content

Commit 8122c94

Browse files
authored
Changed way to add method to current link
1 parent 526b9d7 commit 8122c94

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/internal/Magento/Framework/View/Element/Html/Link/Current.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,10 @@ protected function _toHtml()
139139

140140
if ($this->isCurrent()) {
141141
$html = '<li class="nav item current">';
142-
$html .= '<strong '.$this->getAttributesHtml().'>'
143-
. $this->escapeHtml(__($this->getLabel()))
144-
. '</strong>';
142+
$html .= '<strong';
143+
$html .= $this->getAttributesHtml() . '>'
144+
. $this->escapeHtml(__($this->getLabel()))
145+
. '</strong>';
145146
$html .= '</li>';
146147
} else {
147148
$html = '<li class="nav item' . $highlight . '"><a href="' . $this->escapeHtml($this->getHref()) . '"';

0 commit comments

Comments
 (0)