Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Validator
EmailAddress.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Framework\Validator
;
9
10
class
EmailAddress
extends
\Zend_Validate_EmailAddress
implements \Magento\Framework\Validator\ValidatorInterface
11
{
24
public
function
__construct
(
$options
= [])
25
{
26
parent::__construct(
$options
);
27
28
$this->
getHostnameValidator
()->setValidateTld(
false
);
29
}
30
37
public
function
setValidateTld
(
bool
$shouldValidate)
38
{
39
$this->
getHostnameValidator
()->setValidateTld($shouldValidate);
40
}
41
}
Magento\Framework\Validator\EmailAddress\__construct
__construct($options=[])
Definition:
EmailAddress.php:24
Zend_Validate_EmailAddress
Definition:
EmailAddress.php:38
Magento\Framework\Validator\EmailAddress\setValidateTld
setValidateTld(bool $shouldValidate)
Definition:
EmailAddress.php:37
Magento\Framework\Validator
Definition:
AbstractValidator.php:6
$options
$options
Definition:
multiple_mixed_products.php:29
Zend_Validate_EmailAddress\getHostnameValidator
getHostnameValidator()
Definition:
EmailAddress.php:236
Magento\Framework\Validator\EmailAddress
Definition:
EmailAddress.php:10