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
module-config
Model
Config
Backend
Email
Address.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\Config\Model\Config\Backend\Email
;
11
12
use
Magento\Framework\Exception\LocalizedException
;
13
18
class
Address
extends
\Magento\Framework\App\Config\Value
19
{
24
public
function
beforeSave
()
25
{
26
$value
= $this->getValue();
27
if
(!\
Zend_Validate::is
(
$value
, \
Magento
\Framework\
Validator
\EmailAddress::class)) {
28
throw
new
LocalizedException
(
29
__
(
'The "%1" email address is incorrect. Verify the email address and try again.'
,
$value
)
30
);
31
}
32
return
$this;
33
}
34
}
Magento\Framework\Exception\LocalizedException
Definition:
LocalizedException.php:17
__
__()
Definition:
__.php:13
Magento\Config\Model\Config\Backend\Email\Address\beforeSave
beforeSave()
Definition:
Address.php:24
Magento\Config\Model\Config\Backend\Email
Definition:
Address.php:10
$value
$value
Definition:
gender.phtml:16
Magento
Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricing\Validator
Definition:
TierPrice.php:6
Zend_Validate\is
static is($value, $classBaseName, array $args=array(), $namespaces=array())
Definition:
Validate.php:195
Magento\Config\Model\Config\Backend\Email\Address
Definition:
Address.php:18