Skip to content

Commit 94dc6f5

Browse files
ENGCOM-6332: Telephone Widget > Template > Removing this and helper #25533
2 parents ebeb901 + d28f90d commit 94dc6f5

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

app/code/Magento/Customer/view/frontend/templates/widget/telephone.phtml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,14 @@
1414
</span>
1515
</label>
1616
<div class="control">
17-
<?php
18-
$_validationClass = $block->escapeHtmlAttr(
19-
$this->helper(\Magento\Customer\Helper\Address::class)
20-
->getAttributeValidationClass('telephone')
21-
);
22-
?>
2317
<input type="text"
2418
name="telephone"
2519
id="telephone"
2620
value="<?= $block->escapeHtmlAttr($block->getTelephone()) ?>"
2721
title="<?= $block->escapeHtmlAttr(__('Phone Number')) ?>"
28-
class="input-text <?= $_validationClass ?: '' ?>"
22+
class="input-text <?= $block->escapeHtmlAttr(
23+
$block->getAttributeValidationClass('telephone')
24+
) ?>"
2925
>
3026
</div>
3127
</div>

0 commit comments

Comments
 (0)