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-message-queue
Topology
Config
Validator
DependentFields.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\MessageQueue\Topology\Config\Validator
;
7
8
use
Magento\Framework\MessageQueue\Topology\Config\ValidatorInterface
;
9
13
class
DependentFields
implements
ValidatorInterface
14
{
18
public
function
validate
(
$configData
)
19
{
20
$errors
= [];
21
foreach
(
$configData
as
$name
=>
$data
) {
22
foreach
((array)
$data
[
'bindings'
] as $binding) {
23
if
(isset(
$data
[
'type'
]) &&
$data
[
'type'
] ==
'topic'
&& !isset($binding[
'topic'
])) {
24
$errors
[] =
'Topic name is required for topic based exchange: '
.
$name
;
25
}
26
}
27
}
28
29
if
(!empty(
$errors
)) {
30
throw
new \LogicException(implode(PHP_EOL,
$errors
));
31
}
32
}
33
}
Magento\Framework\MessageQueue\Topology\Config\ValidatorInterface
Definition:
ValidatorInterface.php:11
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
$configData
$configData
Definition:
payment_configuration.php:26
Magento\Framework\MessageQueue\Topology\Config\Validator
Definition:
DependentFields.php:6
Magento\Framework\MessageQueue\Topology\Config\Validator\DependentFields
Definition:
DependentFields.php:13
Magento\Framework\MessageQueue\Topology\Config\Validator\DependentFields\validate
validate($configData)
Definition:
DependentFields.php:18
$errors
$errors
Definition:
overview.phtml:9
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14