Skip to content

Commit 526b9d7

Browse files
authored
Update Current.php
Add possibility to pass custom attributes from XML to current link.
1 parent b9c13fd commit 526b9d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ protected function _toHtml()
139139

140140
if ($this->isCurrent()) {
141141
$html = '<li class="nav item current">';
142-
$html .= '<strong>'
142+
$html .= '<strong '.$this->getAttributesHtml().'>'
143143
. $this->escapeHtml(__($this->getLabel()))
144144
. '</strong>';
145145
$html .= '</li>';

0 commit comments

Comments
 (0)