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
Sender.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\Config\Model\Config\Backend\Email
;
11
16
class
Sender
extends
\Magento\Framework\App\Config\Value
17
{
24
public
function
beforeSave
()
25
{
26
$value
= $this->getValue();
27
if
(!preg_match(
"/^[\S ]+$/"
,
$value
)) {
28
throw
new \Magento\Framework\Exception\LocalizedException(
29
__
(
'The sender name "%1" is not valid. Please use only visible characters and spaces.'
,
$value
)
30
);
31
}
32
33
if
(strlen(
$value
) > 255) {
34
throw
new \Magento\Framework\Exception\LocalizedException(
35
__
(
'Maximum sender name length is 255. Please correct your settings.'
)
36
);
37
}
38
return
$this;
39
}
40
}
__
__()
Definition:
__.php:13
Magento\Config\Model\Config\Backend\Email
Definition:
Address.php:10
$value
$value
Definition:
gender.phtml:16
Magento\Config\Model\Config\Backend\Email\Sender\beforeSave
beforeSave()
Definition:
Sender.php:24
Magento\Config\Model\Config\Backend\Email\Sender
Definition:
Sender.php:16