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-analytics
Model
Config
Backend
Vertical.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Analytics\Model\Config\Backend
;
7
8
use
Magento\Framework\Exception\LocalizedException
;
9
13
class
Vertical
extends
\Magento\Framework\App\Config\Value
14
{
24
public
function
beforeSave
()
25
{
26
if
(empty($this->getValue())) {
27
throw
new
LocalizedException
(
__
(
'Please select an industry.'
));
28
}
29
30
return
$this;
31
}
32
}
Magento\Framework\Exception\LocalizedException
Definition:
LocalizedException.php:17
__
__()
Definition:
__.php:13
Magento\Analytics\Model\Config\Backend
Magento\Analytics\Model\Config\Backend\Vertical
Definition:
Vertical.php:13
Magento\Analytics\Model\Config\Backend\Vertical\beforeSave
beforeSave()
Definition:
Vertical.php:24