We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ebeb901 + d28f90d commit 94dc6f5Copy full SHA for 94dc6f5
app/code/Magento/Customer/view/frontend/templates/widget/telephone.phtml
@@ -14,18 +14,14 @@
14
</span>
15
</label>
16
<div class="control">
17
- <?php
18
- $_validationClass = $block->escapeHtmlAttr(
19
- $this->helper(\Magento\Customer\Helper\Address::class)
20
- ->getAttributeValidationClass('telephone')
21
- );
22
- ?>
23
<input type="text"
24
name="telephone"
25
id="telephone"
26
value="<?= $block->escapeHtmlAttr($block->getTelephone()) ?>"
27
title="<?= $block->escapeHtmlAttr(__('Phone Number')) ?>"
28
- class="input-text <?= $_validationClass ?: '' ?>"
+ class="input-text <?= $block->escapeHtmlAttr(
+ $block->getAttributeValidationClass('telephone')
+ ) ?>"
29
>
30
</div>
31
0 commit comments