Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DependentFields.php
Go to the documentation of this file.
1 <?php
7 
9 
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 }
$errors
Definition: overview.phtml:9
if(!isset($_GET['name'])) $name
Definition: log.php:14